Package net.minecraft.client.renderer
Class ItemBlockRenderTypes
java.lang.Object
net.minecraft.client.renderer.ItemBlockRenderTypes
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Map<IRegistryDelegate<Block>,
Predicate<RenderType>> private static @Nullable Map<IRegistryDelegate<Block>,
Predicate<RenderType>> private static final Map<IRegistryDelegate<Fluid>,
Predicate<RenderType>> private static @Nullable Map<IRegistryDelegate<Fluid>,
Predicate<RenderType>> private static boolean
private static final Predicate<RenderType>
private static final Map<Block,
RenderType> Deprecated.private static final Map<Fluid,
RenderType> Deprecated. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canRenderInLayer
(BlockState state, RenderType type) static boolean
canRenderInLayer
(FluidState fluid, RenderType type) private static <T> Map<IRegistryDelegate<T>,
Predicate<RenderType>> copy
(Map<IRegistryDelegate<T>, Predicate<RenderType>> map) private static Predicate<RenderType>
private static <T extends ForgeRegistryEntry<T>>
Map<IRegistryDelegate<T>,Predicate<RenderType>> createRenderCheckMap
(Map<T, RenderType> vanillaMap) private static Map<IRegistryDelegate<Block>,
Predicate<RenderType>> static Map<IRegistryDelegate<Block>,
Predicate<RenderType>> static RenderType
getChunkRenderType
(BlockState p_109283_) Deprecated.private static Map<IRegistryDelegate<Fluid>,
Predicate<RenderType>> static Map<IRegistryDelegate<Fluid>,
Predicate<RenderType>> static RenderType
getMovingBlockRenderType
(BlockState p_109294_) Deprecated.static RenderType
getRenderLayer
(FluidState p_109288_) Deprecated.static RenderType
getRenderType
(ItemStack p_109280_, boolean p_109281_) static RenderType
getRenderType
(BlockState p_109285_, boolean p_109286_) static void
setFancy
(boolean p_109292_) static void
setRenderLayer
(Block block, Predicate<RenderType> predicate) static void
setRenderLayer
(Block block, RenderType type) static void
setRenderLayer
(Fluid fluid, Predicate<RenderType> predicate) static void
setRenderLayer
(Fluid fluid, RenderType type)
-
Field Details
-
TYPE_BY_BLOCK
Deprecated. -
TYPE_BY_FLUID
Deprecated. -
renderCutout
private static boolean renderCutout -
SOLID_PREDICATE
-
blockRenderChecks
-
fluidRenderChecks
-
blockRenderChecksReadOnly
@Nullable private static volatile @Nullable Map<IRegistryDelegate<Block>,Predicate<RenderType>> blockRenderChecksReadOnly -
fluidRenderChecksReadOnly
@Nullable private static volatile @Nullable Map<IRegistryDelegate<Fluid>,Predicate<RenderType>> fluidRenderChecksReadOnly
-
-
Constructor Details
-
ItemBlockRenderTypes
public ItemBlockRenderTypes()
-
-
Method Details
-
getChunkRenderType
Deprecated. -
getMovingBlockRenderType
Deprecated. -
getRenderType
-
getRenderType
-
getRenderLayer
Deprecated. -
createRenderCheckMap
private static <T extends ForgeRegistryEntry<T>> Map<IRegistryDelegate<T>,Predicate<RenderType>> createRenderCheckMap(Map<T, RenderType> vanillaMap) -
canRenderInLayer
-
canRenderInLayer
-
setRenderLayer
-
setRenderLayer
-
setRenderLayer
-
setRenderLayer
-
getBlockLayerPredicatesView
-
getBlockLayerPredicates
-
getFluidLayerPredicatesView
-
getFluidLayerPredicates
-
copy
private static <T> Map<IRegistryDelegate<T>,Predicate<RenderType>> copy(Map<IRegistryDelegate<T>, Predicate<RenderType>> map) -
createMatchingLayerPredicate
-
setFancy
public static void setFancy(boolean p_109292_)
-