Package net.minecraft.client.renderer
Class ItemBlockRenderTypes
java.lang.Object
net.minecraft.client.renderer.ItemBlockRenderTypes
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<Block,
ChunkRenderTypeSet> private static final ChunkRenderTypeSet
private static boolean
private static final ChunkRenderTypeSet
private static final Map<Block,
RenderType> Deprecated.private static final Map<Fluid,
RenderType> Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
private static ChunkRenderTypeSet
createSetFromPredicate
(Predicate<RenderType> predicate) static RenderType
getChunkRenderType
(BlockState p_109283_) Deprecated.static RenderType
getMovingBlockRenderType
(BlockState p_109294_) Deprecated.static RenderType
getRenderLayer
(FluidState p_109288_) static ChunkRenderTypeSet
getRenderLayers
(BlockState state) static RenderType
getRenderType
(ItemStack p_109280_, boolean p_109281_) Deprecated.static RenderType
getRenderType
(BlockState p_109285_, boolean p_109286_) Deprecated.static void
setFancy
(boolean p_109292_) static void
setRenderLayer
(Block block, Predicate<RenderType> predicate) Deprecated.Set your render type in your block model's JSON (eg.static void
setRenderLayer
(Block block, RenderType type) Deprecated.Set your render type in your block model's JSON (eg.static void
setRenderLayer
(Block block, ChunkRenderTypeSet layers) Deprecated.Set your render type in your block model's JSON (eg.static void
setRenderLayer
(Fluid fluid, RenderType type)
-
Field Details
-
TYPE_BY_BLOCK
Deprecated. -
TYPE_BY_FLUID
Deprecated. -
renderCutout
private static boolean renderCutout -
CUTOUT_MIPPED
-
SOLID
-
BLOCK_RENDER_TYPES
-
-
Constructor Details
-
ItemBlockRenderTypes
public ItemBlockRenderTypes()
-
-
Method Details
-
getChunkRenderType
-
getMovingBlockRenderType
Deprecated. -
getRenderType
Deprecated. -
getRenderType
Deprecated. -
getRenderLayer
-
getRenderLayers
-
setRenderLayer
Deprecated.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
-
setRenderLayer
@Deprecated(since="1.19") public static void setRenderLayer(Block block, Predicate<RenderType> predicate) Deprecated.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
-
setRenderLayer
Deprecated.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
-
setRenderLayer
-
checkClientLoading
private static void checkClientLoading() -
createSetFromPredicate
-
setFancy
public static void setFancy(boolean p_109292_)
-
IBakedModelExtension.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.neoforged.neoforge.client.model.data.ModelData)
.