Class BooleanProperty
java.lang.Object
com.sk89q.worldedit.registry.state.AbstractProperty<Boolean>
com.sk89q.worldedit.registry.state.BooleanProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the index of the given value in the list of valuesintgetIndexFor(CharSequence string) Get the index of the given value in the list of valuesgetValueFor(String string) Gets the value for the given string, or null.withOffset(int bitOffset) Methods inherited from class com.sk89q.worldedit.registry.state.AbstractProperty
equals, getBitMask, getBitOffset, getIndex, getKey, getName, getNumBits, getValue, getValues, hashCode, modify, modifyIndex, setName, toString
-
Constructor Details
-
BooleanProperty
-
-
Method Details
-
getIndex
Description copied from interface:PropertyGet the index of the given value in the list of values- Parameters:
value- value to get index for
-
withOffset
- Specified by:
withOffsetin classAbstractProperty<Boolean>
-
getIndexFor
Description copied from interface:PropertyGet the index of the given value in the list of values- Parameters:
string- value to get index for- Throws:
IllegalArgumentException- if value not applicable to this property
-
getValueFor
Description copied from interface:PropertyGets the value for the given string, or null.- Specified by:
getValueForin interfaceProperty<Boolean>- Overrides:
getValueForin classAbstractProperty<Boolean>- Parameters:
string- The string- Returns:
- The value, or null
-