public class DominantHandProperty extends AbstractProperty<String,HandPreference>
Property for the dominant HandPreference of a
Player.
Handedness usually determines which hand is used for "main" interactions, such as tool use or block breaking.
NOTE: This only applies to Players, for Living
entities see DominantHandData.
Property.Operatoroperator, value| Constructor and Description |
|---|
DominantHandProperty(HandPreference value)
Creates a new
DominantHandProperty with the provided
HandPreference value. |
DominantHandProperty(HandPreference value,
Property.Operator op)
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Property<?,?> o) |
equals, getDefaultKey, getDefaultOperator, getKey, getOperator, getValue, hashCode, hashCodeOf, matches, toStringpublic DominantHandProperty(@Nullable HandPreference value)
DominantHandProperty with the provided
HandPreference value.value - The valuepublic DominantHandProperty(@Nullable HandPreference value, @Nullable Property.Operator op)
value - The valueop - The operator for comparison