public class BlockModelShapes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<IBlockState,IBakedModel> |
bakedModelStore |
private BlockStateMapper |
blockStateMapper |
private ModelManager |
modelManager |
Constructor and Description |
---|
BlockModelShapes(ModelManager manager) |
Modifier and Type | Method and Description |
---|---|
BlockStateMapper |
getBlockStateMapper() |
IBakedModel |
getModelForState(IBlockState state) |
ModelManager |
getModelManager() |
TextureAtlasSprite |
getTexture(IBlockState state) |
private void |
registerAllBlocks() |
void |
registerBlockWithStateMapper(Block assoc,
IStateMapper stateMapper) |
void |
registerBuiltInBlocks(Block... builtIns) |
void |
reloadModels() |
private final java.util.Map<IBlockState,IBakedModel> bakedModelStore
private final BlockStateMapper blockStateMapper
private final ModelManager modelManager
public BlockModelShapes(ModelManager manager)
public BlockStateMapper getBlockStateMapper()
public TextureAtlasSprite getTexture(IBlockState state)
public IBakedModel getModelForState(IBlockState state)
public ModelManager getModelManager()
public void reloadModels()
public void registerBlockWithStateMapper(Block assoc, IStateMapper stateMapper)
public void registerBuiltInBlocks(Block... builtIns)
private void registerAllBlocks()