Class ItemBlockRenderTypes
java.lang.Object
net.minecraft.client.renderer.ItemBlockRenderTypes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static booleanprivate static final Map<Fluid, ChunkSectionLayer> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidstatic booleanforceOpaque(BlockState blockState) static RenderTypestatic RenderTypegetBlockModelRenderType(BlockStateModel model, BlockAndTintGetter level, BlockPos pos, BlockState state) static RenderTypestatic ChunkSectionLayergetRenderLayer(FluidState state) static RenderTypegetRenderType(ChunkSectionLayer layer) static voidsetCutoutLeaves(boolean cutoutLeaves) static voidsetRenderLayer(Fluid fluid, ChunkSectionLayer layer) Helper to set the RenderType for Fluids
-
Field Details
-
LAYER_BY_FLUID
-
cutoutLeaves
private static boolean cutoutLeaves
-
-
Constructor Details
-
ItemBlockRenderTypes
public ItemBlockRenderTypes()
-
-
Method Details
-
getMovingBlockRenderType
-
getRenderType
-
getBlockModelRenderType
-
getBlockModelRenderType
public static RenderType getBlockModelRenderType(BlockStateModel model, BlockAndTintGetter level, BlockPos pos, BlockState state) -
getRenderLayer
-
forceOpaque
-
setCutoutLeaves
public static void setCutoutLeaves(boolean cutoutLeaves) -
setRenderLayer
Helper to set the RenderType for Fluids -
checkClientLoading
private static void checkClientLoading()
-