net.minecraft.client.render.block

public class BlockModelRenderer

net.minecraft.client.renderer.block.ModelBlockRenderer
net.minecraft.class_778
net.minecraft.client.render.block.BlockModelRenderer

Field summary

Modifier and TypeField
private static final Direction[]
DIRECTIONS
field_27743
DIRECTIONS
private final AmbientOcclusionCalculator
lighter
field_1_2204
aoCalculator
private final boolean
ambientOcclusion
field_1_2202
ao
private final boolean
cull
field_1_2203
chunked
private final BlockColors
blockColors
field_4178
colors
private final Random
random
field_1_2207
random
private final List<BlockModelPart>
parts
field_1_2205
modelParts
private final BlockPos$Mutable
scratchPos
field_1_2208
neighborPos
private final QuadShading
quadInstance
field_1_2206
shading
private int
tintCacheIndex
field_1_2209
lastTintIndex
private int
tintCacheValue
field_1_2210
colorOfLastTintIndex
private boolean
tintSourcesInitialized
field_1_2325
initializedColors
private final List<BlockColorProvider>
tintSources
field_1_2326
colorProviders
private final it.unimi.dsi.fastutil.ints.IntList
computedTintValues
field_1_2324
tintColors

Constructor summary

ModifierConstructor
public (boolean ao, boolean chunked, BlockColors colors)

Method summary

Modifier and TypeMethod
public static boolean
forceOpaque(boolean cutoutLeaves, BlockState blockState)
method_1_2627(boolean arg0, class_2680 arg1)
forceSolid(boolean cutoutLeaves, BlockState state)
public void
tesselateBlock(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockPos pos, BlockState blockState, BlockStateModel model, long seed)
method_1_2632(class_1_319 arg0, float arg1, float arg2, float arg3, class_1_393 arg4, class_2338 arg5, class_2680 arg6, class_1087 arg7, long arg8)
renderModel(QuadConsumer callback, float x, float y, float z, BlockRenderView blockRenderView, BlockPos pos, BlockState state, BlockStateModel model, long seed)
private void
configureTintCache(BlockState blockState)
method_1_2801(class_2680 arg0)
initializeColors(BlockState state)
private void
resetTintCache()
method_1_2802()
resetColors()
private void
tesselateAmbientOcclusion(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos)
method_1_2631(class_1_319 arg0, float arg1, float arg2, float arg3, List<class_10889> arg4, class_1_393 arg5, class_2680 arg6, class_2338 arg7)
renderModelPartsWithAo(QuadConsumer callback, float x, float y, float z, List<BlockModelPart> modelParts, BlockRenderView blockRenderView, BlockState state, BlockPos pos)
private void
tesselateFlat(BlockQuadOutput output, float x, float y, float z, List<BlockStateModelPart> parts, BlockAndTintGetter level, BlockState state, BlockPos pos)
method_1_2633(class_1_319 arg0, float arg1, float arg2, float arg3, List<class_10889> arg4, class_1_393 arg5, class_2680 arg6, class_2338 arg7)
renderModelPartsWithoutAo(QuadConsumer callback, float x, float y, float z, List<BlockModelPart> modelParts, BlockRenderView blockRenderView, BlockState state, BlockPos pos)
private boolean
shouldRenderFace(BlockAndTintGetter level, BlockState state, Direction direction, BlockPos neighborPos)
method_1_2630(class_1_393 arg0, class_2680 arg1, class_2350 arg2, class_2338 arg3)
shouldDrawSide(BlockRenderView blockRenderView, BlockState state, Direction direction, BlockPos neighborPos)
private void
putQuadWithTint(BlockQuadOutput output, float x, float y, float z, BlockAndTintGetter level, BlockState state, BlockPos pos, BakedQuad quad)
method_1_2629(class_1_319 arg0, float arg1, float arg2, float arg3, class_1_393 arg4, class_2680 arg5, class_2338 arg6, class_777 arg7)
renderQuad(QuadConsumer callback, float x, float y, float z, BlockRenderView blockRenderView, BlockState state, BlockPos pos, BakedQuad quad)
private int
getTintColor(BlockAndTintGetter level, BlockState state, BlockPos pos, int tintIndex)
method_1_2628(class_1_393 arg0, class_2680 arg1, class_2338 arg2, int arg3)
getTintColor(BlockRenderView blockRenderView, BlockState state, BlockPos pos, int tintIndex)
private int
computeTintColor(BlockAndTintGetter level, BlockState state, BlockPos pos, int tintIndex)
method_1_2800(class_1_393 arg0, class_2680 arg1, class_2338 arg2, int arg3)
computeTintColor(BlockRenderView world, BlockState state, BlockPos pos, int tintIndex)