static class BlockState.StateImplementation extends BlockStateBase
Modifier and Type | Field and Description |
---|---|
private Block |
block |
private com.google.common.collect.ImmutableMap<IProperty,java.lang.Comparable> |
properties |
private com.google.common.collect.ImmutableTable<IProperty,java.lang.Comparable,IBlockState> |
propertyValueTable |
Modifier | Constructor and Description |
---|---|
private |
StateImplementation(Block blockIn,
com.google.common.collect.ImmutableMap<IProperty,java.lang.Comparable> propertiesIn) |
Modifier and Type | Method and Description |
---|---|
void |
buildPropertyValueTable(java.util.Map<java.util.Map<IProperty,java.lang.Comparable>,BlockState.StateImplementation> map) |
boolean |
equals(java.lang.Object p_equals_1_) |
Block |
getBlock() |
com.google.common.collect.ImmutableMap<IProperty,java.lang.Comparable> |
getProperties() |
private java.util.Map<IProperty,java.lang.Comparable> |
getPropertiesWithValue(IProperty property,
java.lang.Comparable value) |
java.util.Collection<IProperty> |
getPropertyNames() |
<T extends java.lang.Comparable<T>> |
getValue(IProperty<T> property) |
int |
hashCode() |
<T extends java.lang.Comparable<T>,V extends T> |
withProperty(IProperty<T> property,
V value) |
cycleProperty, cyclePropertyValue, toString
private final Block block
private final com.google.common.collect.ImmutableMap<IProperty,java.lang.Comparable> properties
private com.google.common.collect.ImmutableTable<IProperty,java.lang.Comparable,IBlockState> propertyValueTable
public java.util.Collection<IProperty> getPropertyNames()
public <T extends java.lang.Comparable<T>> T getValue(IProperty<T> property)
public <T extends java.lang.Comparable<T>,V extends T> IBlockState withProperty(IProperty<T> property, V value)
public com.google.common.collect.ImmutableMap<IProperty,java.lang.Comparable> getProperties()
public Block getBlock()
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void buildPropertyValueTable(java.util.Map<java.util.Map<IProperty,java.lang.Comparable>,BlockState.StateImplementation> map)