Class ModelBlockRenderer
java.lang.Object
net.minecraft.client.renderer.block.ModelBlockRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final BlockColorsprivate final it.unimi.dsi.fastutil.ints.IntListprivate final booleanprivate static final Direction[]private final BlockModelLighterprivate final List<BlockStateModelPart> private final QuadInstanceprivate final RandomSourceprivate final BlockPos.MutableBlockPosprivate intprivate intprivate final List<@Nullable BlockTintSource> private boolean -
Constructor Summary
ConstructorsConstructorDescriptionModelBlockRenderer(boolean ambientOcclusion, boolean cull, BlockColors blockColors) -
Method Summary
Modifier and TypeMethodDescriptionprivate intcomputeTintColor(BlockAndTintGetter level, BlockState state, BlockPos pos, int tintIndex) private voidconfigureTintCache(BlockState blockState) static booleanforceOpaque(boolean cutoutLeaves, BlockState blockState) private intgetTintColor(BlockAndTintGetter level, BlockState state, BlockPos pos, int tintIndex) private voidputQuadWithTint(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockState state, BlockPos pos, BakedQuad quad) private voidprivate booleanshouldRenderFace(BlockAndTintGetter level, BlockPos pos, BlockState state, Direction direction, BlockPos neighborPos) private booleanshouldRenderFace(BlockAndTintGetter level, BlockState state, Direction direction, BlockPos neighborPos) Deprecated.private voidtesselateAmbientOcclusion(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos) voidtesselateBlock(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockPos pos, BlockState blockState, BlockStateModel model, long seed) private voidtesselateFlat(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos)
-
Field Details
-
DIRECTIONS
-
lighter
-
ambientOcclusion
private final boolean ambientOcclusion -
cull
private final boolean cull -
blockColors
-
random
-
parts
-
scratchPos
-
quadInstance
-
tintCacheIndex
private int tintCacheIndex -
tintCacheValue
private int tintCacheValue -
tintSourcesInitialized
private boolean tintSourcesInitialized -
tintSources
-
computedTintValues
private final it.unimi.dsi.fastutil.ints.IntList computedTintValues
-
-
Constructor Details
-
ModelBlockRenderer
-
-
Method Details
-
forceOpaque
-
tesselateBlock
public void tesselateBlock(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockPos pos, BlockState blockState, BlockStateModel model, long seed) -
configureTintCache
-
resetTintCache
private void resetTintCache() -
tesselateAmbientOcclusion
private void tesselateAmbientOcclusion(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos) -
tesselateFlat
private void tesselateFlat(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos) -
shouldRenderFace
private boolean shouldRenderFace(BlockAndTintGetter level, BlockPos pos, BlockState state, Direction direction, BlockPos neighborPos) -
shouldRenderFace
@Deprecated private boolean shouldRenderFace(BlockAndTintGetter level, BlockState state, Direction direction, BlockPos neighborPos) Deprecated. -
putQuadWithTint
private void putQuadWithTint(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockState state, BlockPos pos, BakedQuad quad) -
getTintColor
-
computeTintColor
private int computeTintColor(BlockAndTintGetter level, BlockState state, BlockPos pos, int tintIndex)
-
shouldRenderFace(BlockAndTintGetter, BlockPos, BlockState, Direction, BlockPos)instead