FogEnvironment.java
net.minecraft.client.renderer.fog.environment.FogEnvironment
信息
- 全限定名:net.minecraft.client.renderer.fog.environment.FogEnvironment
- 类型:public abstract class
- 包:net.minecraft.client.renderer.fog.environment
- 源码路径:src/main/java/net/minecraft/client/renderer/fog/environment/FogEnvironment.java
- 起始行号:L15
- 职责:
TODO
字段/常量
- 无
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public abstract void setupFog(FogData fog, Camera camera, ClientLevel level, float renderDistance, DeltaTracker deltaTracker) @ L16
- 方法名:setupFog
- 源码定位:L16
- 返回类型:void
- 修饰符:public abstract
参数:
- fog: FogData
- camera: Camera
- level: ClientLevel
- renderDistance: float
- deltaTracker: DeltaTracker
说明:
TODO
public boolean providesColor() @ L18
- 方法名:providesColor
- 源码定位:L18
- 返回类型:boolean
- 修饰符:public
参数:
- 无
说明:
TODO
public int getBaseColor(ClientLevel level, Camera camera, int renderDistance, float partialTicks) @ L22
- 方法名:getBaseColor
- 源码定位:L22
- 返回类型:int
- 修饰符:public
参数:
- level: ClientLevel
- camera: Camera
- renderDistance: int
- partialTicks: float
说明:
TODO
public boolean modifiesDarkness() @ L26
- 方法名:modifiesDarkness
- 源码定位:L26
- 返回类型:boolean
- 修饰符:public
参数:
- 无
说明:
TODO
public float getModifiedDarkness(LivingEntity entity, float darkness, float partialTickTime) @ L30
- 方法名:getModifiedDarkness
- 源码定位:L30
- 返回类型:float
- 修饰符:public
参数:
- entity: LivingEntity
- darkness: float
- partialTickTime: float
说明:
TODO
public abstract boolean isApplicable(FogType fogType, Entity entity) @ L34
- 方法名:isApplicable
- 源码定位:L34
- 返回类型:boolean
- 修饰符:public abstract
参数:
- fogType: FogType
- entity: Entity
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public abstract class FogEnvironment {
public abstract void setupFog(FogData fog, Camera camera, ClientLevel level, float renderDistance, DeltaTracker deltaTracker);
public boolean providesColor() {
return true;
}
public int getBaseColor(ClientLevel level, Camera camera, int renderDistance, float partialTicks) {
return -1;
}
public boolean modifiesDarkness() {
return false;
}
public float getModifiedDarkness(LivingEntity entity, float darkness, float partialTickTime) {
return darkness;
}
public abstract boolean isApplicable(@Nullable FogType fogType, Entity entity);
}引用的其他类
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
参数
- 引用位置: