public abstract class StateHolder<O,S> extends java.lang.Object implements IStateHolder<S>
修飾子とタイプ | フィールドと説明 |
---|---|
protected O |
object |
field_215672_b
修飾子 | コンストラクタと説明 |
---|---|
protected |
StateHolder(O objectIn,
com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> propertiesIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,S> map) |
<T extends java.lang.Comparable<T>> |
cycle(IProperty<T> property)
Create a version of this BlockState with the given property cycled to the next value in order.
|
protected static <T> T |
cyclePropertyValue(java.util.Collection<T> values,
T currentValue)
Helper method for cycleProperty.
|
<T extends java.lang.Comparable<T>> |
get(IProperty<T> property)
Get the value of the given Property for this BlockState
|
java.util.Collection<IProperty<?>> |
getProperties() |
com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> |
getValues() |
<T extends java.lang.Comparable<T>> |
has(IProperty<T> property) |
java.lang.String |
toString() |
<T extends java.lang.Comparable<T>,V extends T> |
with(IProperty<T> property,
V value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getName, withString
protected final O object
public <T extends java.lang.Comparable<T>> S cycle(IProperty<T> property)
protected static <T> T cyclePropertyValue(java.util.Collection<T> values, T currentValue)
public java.lang.String toString()
toString
クラス内 java.lang.Object
public java.util.Collection<IProperty<?>> getProperties()
public <T extends java.lang.Comparable<T>> boolean has(IProperty<T> property)
public <T extends java.lang.Comparable<T>> T get(IProperty<T> property)
get
インタフェース内 IStateHolder<S>
public <T extends java.lang.Comparable<T>,V extends T> S with(IProperty<T> property, V value)
with
インタフェース内 IStateHolder<S>
public void buildPropertyValueTable(java.util.Map<java.util.Map<IProperty<?>,java.lang.Comparable<?>>,S> map)
public com.google.common.collect.ImmutableMap<IProperty<?>,java.lang.Comparable<?>> getValues()
getValues
インタフェース内 IStateHolder<S>