MovingBlockRenderState.java
net.minecraft.client.renderer.block.MovingBlockRenderState
信息
- 全限定名:net.minecraft.client.renderer.block.MovingBlockRenderState
- 类型:public class
- 包:net.minecraft.client.renderer.block
- 源码路径:src/main/java/net/minecraft/client/renderer/block/MovingBlockRenderState.java
- 起始行号:L18
- 实现:BlockAndTintGetter
- 职责:
TODO
字段/常量
-
randomSeedPos- 类型:
BlockPos - 修饰符:
public - 源码定位:
L19 - 说明:
TODO
- 类型:
-
blockPos- 类型:
BlockPos - 修饰符:
public - 源码定位:
L20 - 说明:
TODO
- 类型:
-
blockState- 类型:
BlockState - 修饰符:
public - 源码定位:
L21 - 说明:
TODO
- 类型:
-
biome- 类型:
Holder<Biome> - 修饰符:
public - 源码定位:
L22 - 说明:
TODO
- 类型:
-
cardinalLighting- 类型:
CardinalLighting - 修饰符:
public - 源码定位:
L23 - 说明:
TODO
- 类型:
-
lightEngine- 类型:
LevelLightEngine - 修饰符:
public - 源码定位:
L24 - 说明:
TODO
- 类型:
内部类/嵌套类型
- 无
构造器
- 无
方法
下面的方法块按源码顺序生成。
public CardinalLighting cardinalLighting() @ L26
- 方法名:cardinalLighting
- 源码定位:L26
- 返回类型:CardinalLighting
- 修饰符:public
参数:
- 无
说明:
TODO
public LevelLightEngine getLightEngine() @ L31
- 方法名:getLightEngine
- 源码定位:L31
- 返回类型:LevelLightEngine
- 修饰符:public
参数:
- 无
说明:
TODO
public int getBlockTint(BlockPos pos, ColorResolver color) @ L36
- 方法名:getBlockTint
- 源码定位:L36
- 返回类型:int
- 修饰符:public
参数:
- pos: BlockPos
- color: ColorResolver
说明:
TODO
public BlockEntity getBlockEntity(BlockPos pos) @ L41
- 方法名:getBlockEntity
- 源码定位:L41
- 返回类型:BlockEntity
- 修饰符:public
参数:
- pos: BlockPos
说明:
TODO
public BlockState getBlockState(BlockPos pos) @ L46
- 方法名:getBlockState
- 源码定位:L46
- 返回类型:BlockState
- 修饰符:public
参数:
- pos: BlockPos
说明:
TODO
public FluidState getFluidState(BlockPos pos) @ L51
- 方法名:getFluidState
- 源码定位:L51
- 返回类型:FluidState
- 修饰符:public
参数:
- pos: BlockPos
说明:
TODO
public int getHeight() @ L56
- 方法名:getHeight
- 源码定位:L56
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
public int getMinY() @ L61
- 方法名:getMinY
- 源码定位:L61
- 返回类型:int
- 修饰符:public
参数:
- 无
说明:
TODO
代码
@OnlyIn(Dist.CLIENT)
public class MovingBlockRenderState implements BlockAndTintGetter {
public BlockPos randomSeedPos = BlockPos.ZERO;
public BlockPos blockPos = BlockPos.ZERO;
public BlockState blockState = Blocks.AIR.defaultBlockState();
public @Nullable Holder<Biome> biome;
public CardinalLighting cardinalLighting = CardinalLighting.DEFAULT;
public LevelLightEngine lightEngine = LevelLightEngine.EMPTY;
@Override
public CardinalLighting cardinalLighting() {
return this.cardinalLighting;
}
@Override
public LevelLightEngine getLightEngine() {
return this.lightEngine;
}
@Override
public int getBlockTint(BlockPos pos, ColorResolver color) {
return this.biome == null ? -1 : color.getColor(this.biome.value(), pos.getX(), pos.getZ());
}
@Override
public @Nullable BlockEntity getBlockEntity(BlockPos pos) {
return null;
}
@Override
public BlockState getBlockState(BlockPos pos) {
return pos.equals(this.blockPos) ? this.blockState : Blocks.AIR.defaultBlockState();
}
@Override
public FluidState getFluidState(BlockPos pos) {
return this.getBlockState(pos).getFluidState();
}
@Override
public int getHeight() {
return 1;
}
@Override
public int getMinY() {
return this.blockPos.getY();
}
}引用的其他类
-
- 引用位置:
实现
- 引用位置:
-
- 引用位置:
参数/字段
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
字段/返回值
- 引用位置:
-
- 引用位置:
参数
- 引用位置:
-
- 引用位置:
字段
- 引用位置:
-
- 引用位置:
返回值
- 引用位置:
-
- 引用位置:
字段/返回值
- 引用位置:
-
- 引用位置:
字段/返回值
- 引用位置:
-
- 引用位置:
返回值
- 引用位置: