public abstract class StateMapperBase extends java.lang.Object implements IStateMapper
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<IBlockState,ModelResourceLocation> |
mapStateModelLocations |
Constructor and Description |
---|
StateMapperBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract ModelResourceLocation |
getModelResourceLocation(IBlockState state) |
private <T extends java.lang.Comparable<T>> |
getPropertyName(IProperty<T> property,
java.lang.Comparable<?> value) |
java.lang.String |
getPropertyString(java.util.Map<IProperty<?>,java.lang.Comparable<?>> values) |
java.util.Map<IBlockState,ModelResourceLocation> |
putStateModelLocations(Block blockIn) |
protected java.util.Map<IBlockState,ModelResourceLocation> mapStateModelLocations
public java.lang.String getPropertyString(java.util.Map<IProperty<?>,java.lang.Comparable<?>> values)
private <T extends java.lang.Comparable<T>> java.lang.String getPropertyName(IProperty<T> property, java.lang.Comparable<?> value)
public java.util.Map<IBlockState,ModelResourceLocation> putStateModelLocations(Block blockIn)
putStateModelLocations
in interface IStateMapper
protected abstract ModelResourceLocation getModelResourceLocation(IBlockState state)