Package net.minecraft.client.renderer
Class ItemBlockRenderTypes
java.lang.Object
net.minecraft.client.renderer.ItemBlockRenderTypes
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<Holder.Reference<Block>,
ChunkRenderTypeSet> private static final ChunkRenderTypeSet
private static final Map<Holder.Reference<Fluid>,
RenderType> 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) Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Set your render type in your block model's JSON (eg.static void
setRenderLayer
(Block block, RenderType type) Deprecated, for removal: This API element is subject to removal in a future version.Set your render type in your block model's JSON (eg.static void
setRenderLayer
(Block block, ChunkRenderTypeSet layers) Deprecated, for removal: This API element is subject to removal in a future version.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
-
FLUID_RENDER_TYPES
-
-
Constructor Details
-
ItemBlockRenderTypes
public ItemBlockRenderTypes()
-
-
Method Details
-
getChunkRenderType
-
getMovingBlockRenderType
Deprecated. -
getRenderType
Deprecated. -
getRenderType
Deprecated. -
getRenderLayer
-
getRenderLayers
@Deprecated(forRemoval=true, since="1.19") public static ChunkRenderTypeSet getRenderLayers(BlockState state) Deprecated, for removal: This API element is subject to removal in a future version. -
setRenderLayer
@Deprecated(forRemoval=true, since="1.19") public static void setRenderLayer(Block block, RenderType type) Deprecated, for removal: This API element is subject to removal in a future version.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
-
setRenderLayer
@Deprecated(forRemoval=true, since="1.19") public static void setRenderLayer(Block block, Predicate<RenderType> predicate) Deprecated, for removal: This API element is subject to removal in a future version.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
-
setRenderLayer
@Deprecated(forRemoval=true, since="1.19") public static void setRenderLayer(Block block, ChunkRenderTypeSet layers) Deprecated, for removal: This API element is subject to removal in a future version.Set your render type in your block model's JSON (eg."render_type": "cutout"
) or overrideIForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
-
setRenderLayer
-
checkClientLoading
private static void checkClientLoading() -
createSetFromPredicate
-
setFancy
public static void setFancy(boolean p_109292_)
-
IForgeBakedModel.getRenderTypes(BlockState, net.minecraft.util.RandomSource, net.minecraftforge.client.model.data.ModelData)
.