Package net.minecraft.state.property
Class BooleanProperty
public class BooleanProperty extends Property<Boolean>
Represents a property that has boolean values.
See Properties for example
usages.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>> -
Field Summary
Fields Modifier and Type Field Description private ImmutableSet<Boolean>values -
Constructor Summary
Constructors Modifier Constructor Description protectedBooleanProperty(String name) -
Method Summary
Modifier and Type Method Description intcomputeHashCode()booleanequals(Object object)Collection<Boolean>getValues()Returns all possible values of this property.Stringname(Boolean bool)Returns the name of the given value of this property.static BooleanPropertyof(String name)Creates a boolean property.Optional<Boolean>parse(String name)Methods inherited from class net.minecraft.state.property.Property
createValue, createValue, getName, getType, getValueCodec, hashCode, stream, toString
-
Field Details
-
values
-
-
Constructor Details
-
BooleanProperty
-
-
Method Details
-
getValues
Returns all possible values of this property. -
of
Creates a boolean property.- Parameters:
name- the name of the property; see the note on the name
-
parse
-
name
Description copied from class:PropertyReturns the name of the given value of this property. -
equals
-
computeHashCode
public int computeHashCode()- Overrides:
computeHashCodein classProperty<Boolean>
-