@Environment(value=CLIENT) public class BlockModels extends Object
Modifier and Type | Field and Description |
---|---|
private BakedModelManager |
modelManager |
private Map<BlockState,BakedModel> |
models |
Constructor and Description |
---|
BlockModels(BakedModelManager bakedModelManager) |
Modifier and Type | Method and Description |
---|---|
BakedModel |
getModel(BlockState blockState) |
static ModelIdentifier |
getModelId(BlockState blockState) |
static ModelIdentifier |
getModelId(Identifier identifier,
BlockState blockState) |
BakedModelManager |
getModelManager() |
Sprite |
getSprite(BlockState blockState) |
static String |
propertyMapToString(Map<Property<?>,Comparable<?>> map) |
private static <T extends Comparable<T>> |
propertyValueToString(Property<T> property,
Comparable<?> comparable) |
void |
reload() |
private final Map<BlockState,BakedModel> models
private final BakedModelManager modelManager
public BlockModels(BakedModelManager bakedModelManager)
public Sprite getSprite(BlockState blockState)
public BakedModel getModel(BlockState blockState)
public BakedModelManager getModelManager()
public void reload()
public static ModelIdentifier getModelId(BlockState blockState)
public static ModelIdentifier getModelId(Identifier identifier, BlockState blockState)
public static String propertyMapToString(Map<Property<?>,Comparable<?>> map)
private static <T extends Comparable<T>> String propertyValueToString(Property<T> property, Comparable<?> comparable)