Interface Property<T>
- All Known Implementing Classes:
AbstractProperty
,BooleanProperty
,DirectionalProperty
,EnumProperty
,IntegerProperty
public interface Property<T>
Describes a state property of a block.
Example states include "variant" (indicating material or type) and "facing" (indicating orientation).
-
Method Summary
-
Method Details
-
getName
String getName()Returns the name of this state.- Returns:
- The state name
-
getValues
Return a list of available values for this state.- Returns:
- the list of state values
-
getValueFor
Gets the value for the given string, or null.- Parameters:
string
- The string- Returns:
- The value, or null
- Throws:
IllegalArgumentException
- When the value is invalid.
-