Package net.minecraft.client.renderer
Class BlockModelShapes
- java.lang.Object
-
- net.minecraft.client.renderer.BlockModelShapes
-
public class BlockModelShapes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<BlockState,IBakedModel>
modelByStateCache
private ModelManager
modelManager
-
Constructor Summary
Constructors Constructor Description BlockModelShapes(ModelManager p_i46245_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IBakedModel
getBlockModel(BlockState p_178125_1_)
ModelManager
getModelManager()
TextureAtlasSprite
getParticleIcon(BlockState p_178122_1_)
Deprecated.TextureAtlasSprite
getTexture(BlockState state, World world, BlockPos pos)
private static <T extends java.lang.Comparable<T>>
java.lang.StringgetValue(Property<T> p_209555_0_, java.lang.Comparable<?> p_209555_1_)
void
rebuildCache()
static java.lang.String
statePropertiesToString(java.util.Map<Property<?>,java.lang.Comparable<?>> p_209552_0_)
static ModelResourceLocation
stateToModelLocation(BlockState p_209554_0_)
static ModelResourceLocation
stateToModelLocation(ResourceLocation p_209553_0_, BlockState p_209553_1_)
-
-
-
Field Detail
-
modelByStateCache
private final java.util.Map<BlockState,IBakedModel> modelByStateCache
-
modelManager
private final ModelManager modelManager
-
-
Constructor Detail
-
BlockModelShapes
public BlockModelShapes(ModelManager p_i46245_1_)
-
-
Method Detail
-
getParticleIcon
@Deprecated public TextureAtlasSprite getParticleIcon(BlockState p_178122_1_)
Deprecated.
-
getTexture
public TextureAtlasSprite getTexture(BlockState state, World world, BlockPos pos)
-
getBlockModel
public IBakedModel getBlockModel(BlockState p_178125_1_)
-
getModelManager
public ModelManager getModelManager()
-
rebuildCache
public void rebuildCache()
-
stateToModelLocation
public static ModelResourceLocation stateToModelLocation(BlockState p_209554_0_)
-
stateToModelLocation
public static ModelResourceLocation stateToModelLocation(ResourceLocation p_209553_0_, BlockState p_209553_1_)
-
statePropertiesToString
public static java.lang.String statePropertiesToString(java.util.Map<Property<?>,java.lang.Comparable<?>> p_209552_0_)
-
getValue
private static <T extends java.lang.Comparable<T>> java.lang.String getValue(Property<T> p_209555_0_, java.lang.Comparable<?> p_209555_1_)
-
-