public class RenderTypeLookup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<IRegistryDelegate<Block>,java.util.function.Predicate<RenderType>> |
blockRenderChecks |
private static boolean |
fancyGraphics |
private static java.util.Map<IRegistryDelegate<Fluid>,java.util.function.Predicate<RenderType>> |
fluidRenderChecks |
private static java.util.Map<Block,RenderType> |
TYPES_BY_BLOCK
Deprecated.
|
private static java.util.Map<Fluid,RenderType> |
TYPES_BY_FLUID
Deprecated.
|
Constructor and Description |
---|
RenderTypeLookup() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canRenderInLayer(BlockState state,
RenderType type) |
static boolean |
canRenderInLayer(IFluidState fluid,
RenderType type) |
static RenderType |
getChunkRenderType(BlockState blockStateIn)
Deprecated.
|
static RenderType |
getRenderType(BlockState blockStateIn) |
static RenderType |
getRenderType(IFluidState fluidStateIn)
Deprecated.
|
static RenderType |
getRenderType(ItemStack itemStackIn) |
static void |
setFancyGraphics(boolean fancyIn) |
static void |
setRenderLayer(Block block,
java.util.function.Predicate<RenderType> predicate) |
static void |
setRenderLayer(Block block,
RenderType type) |
static void |
setRenderLayer(Fluid fluid,
java.util.function.Predicate<RenderType> predicate) |
static void |
setRenderLayer(Fluid fluid,
RenderType type) |
@Deprecated private static final java.util.Map<Block,RenderType> TYPES_BY_BLOCK
@Deprecated private static final java.util.Map<Fluid,RenderType> TYPES_BY_FLUID
private static boolean fancyGraphics
private static final java.util.Map<IRegistryDelegate<Block>,java.util.function.Predicate<RenderType>> blockRenderChecks
private static final java.util.Map<IRegistryDelegate<Fluid>,java.util.function.Predicate<RenderType>> fluidRenderChecks
@Deprecated public static RenderType getChunkRenderType(BlockState blockStateIn)
public static RenderType getRenderType(BlockState blockStateIn)
public static RenderType getRenderType(ItemStack itemStackIn)
@Deprecated public static RenderType getRenderType(IFluidState fluidStateIn)
public static boolean canRenderInLayer(BlockState state, RenderType type)
public static boolean canRenderInLayer(IFluidState fluid, RenderType type)
public static void setRenderLayer(Block block, RenderType type)
public static void setRenderLayer(Block block, java.util.function.Predicate<RenderType> predicate)
public static void setRenderLayer(Fluid fluid, RenderType type)
public static void setRenderLayer(Fluid fluid, java.util.function.Predicate<RenderType> predicate)
public static void setFancyGraphics(boolean fancyIn)