Package net.minecraft.state
Class BooleanProperty
- java.lang.Object
-
- net.minecraft.state.Property<java.lang.Boolean>
-
- net.minecraft.state.BooleanProperty
-
public class BooleanProperty extends Property<java.lang.Boolean>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.state.Property
Property.ValuePair<T extends java.lang.Comparable<T>>
-
-
Field Summary
Fields Modifier and Type Field Description private com.google.common.collect.ImmutableSet<java.lang.Boolean>
values
-
Constructor Summary
Constructors Modifier Constructor Description protected
BooleanProperty(java.lang.String p_i45651_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BooleanProperty
create(java.lang.String p_177716_0_)
boolean
equals(java.lang.Object p_equals_1_)
int
generateHashCode()
java.lang.String
getName(java.lang.Boolean p_177702_1_)
java.util.Collection<java.lang.Boolean>
getPossibleValues()
java.util.Optional<java.lang.Boolean>
getValue(java.lang.String p_185929_1_)
-
Methods inherited from class net.minecraft.state.Property
getAllValues, getName, getValueClass, hashCode, toString, value, value, valueCodec
-
-
-
-
Method Detail
-
getPossibleValues
public java.util.Collection<java.lang.Boolean> getPossibleValues()
- Specified by:
getPossibleValues
in classProperty<java.lang.Boolean>
-
create
public static BooleanProperty create(java.lang.String p_177716_0_)
-
getValue
public java.util.Optional<java.lang.Boolean> getValue(java.lang.String p_185929_1_)
-
getName
public java.lang.String getName(java.lang.Boolean p_177702_1_)
-
equals
public boolean equals(java.lang.Object p_equals_1_)
-
generateHashCode
public int generateHashCode()
- Overrides:
generateHashCode
in classProperty<java.lang.Boolean>
-
-