public class BlockModelShapes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<BlockState,IBakedModel> |
bakedModelStore |
private ModelManager |
modelManager |
Constructor and Description |
---|
BlockModelShapes(ModelManager manager) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
getModel(BlockState state) |
static ModelResourceLocation |
getModelLocation(BlockState state) |
static ModelResourceLocation |
getModelLocation(ResourceLocation location,
BlockState state) |
ModelManager |
getModelManager() |
static java.lang.String |
getPropertyMapString(java.util.Map<IProperty<?>,java.lang.Comparable<?>> propertyValues) |
private static <T extends java.lang.Comparable<T>> |
getPropertyValueString(IProperty<T> property,
java.lang.Comparable<?> value) |
TextureAtlasSprite |
getTexture(BlockState state)
Deprecated.
|
TextureAtlasSprite |
getTexture(BlockState state,
World world,
BlockPos pos) |
void |
reloadModels() |
private final java.util.Map<BlockState,IBakedModel> bakedModelStore
private final ModelManager modelManager
public BlockModelShapes(ModelManager manager)
@Deprecated public TextureAtlasSprite getTexture(BlockState state)
public TextureAtlasSprite getTexture(BlockState state, World world, BlockPos pos)
public IBakedModel getModel(BlockState state)
public ModelManager getModelManager()
public void reloadModels()
public static ModelResourceLocation getModelLocation(BlockState state)
public static ModelResourceLocation getModelLocation(ResourceLocation location, BlockState state)
public static java.lang.String getPropertyMapString(java.util.Map<IProperty<?>,java.lang.Comparable<?>> propertyValues)
private static <T extends java.lang.Comparable<T>> java.lang.String getPropertyValueString(IProperty<T> property, java.lang.Comparable<?> value)