Package net.minecraft.state.property
Class BooleanProperty
Represents a property that has boolean values.
See Properties
for example
usages.
- Mappings:
Namespace Name named net/minecraft/state/property/BooleanProperty
intermediary net/minecraft/class_2746
official dsu
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
boolean
Returns all possible values of this property.Returns the name of the given value of this property.static BooleanProperty
Creates a boolean property.Methods inherited from class net.minecraft.state.property.Property
createValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
-
Field Details
-
values
- Mappings:
Namespace Name Mixin selector named values
Lnet/minecraft/state/property/BooleanProperty;values:Lcom/google/common/collect/ImmutableSet;
intermediary field_12575
Lnet/minecraft/class_2746;field_12575:Lcom/google/common/collect/ImmutableSet;
official a
Ldsu;a:Lcom/google/common/collect/ImmutableSet;
-
-
Constructor Details
-
BooleanProperty
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/state/property/BooleanProperty;<init>(Ljava/lang/String;)V
intermediary <init>
Lnet/minecraft/class_2746;<init>(Ljava/lang/String;)V
official <init>
Ldsu;<init>(Ljava/lang/String;)V
-
-
Method Details
-
getValues
Returns all possible values of this property.- Specified by:
getValues
in classProperty<Boolean>
- Mappings:
Namespace Name Mixin selector named getValues
Lnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
intermediary method_11898
Lnet/minecraft/class_2769;method_11898()Ljava/util/Collection;
official a
Ldtg;a()Ljava/util/Collection;
-
of
Creates a boolean property.- Parameters:
name
- the name of the property; see the note on the name- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/state/property/BooleanProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/BooleanProperty;
intermediary method_11825
Lnet/minecraft/class_2746;method_11825(Ljava/lang/String;)Lnet/minecraft/class_2746;
official a
Ldsu;a(Ljava/lang/String;)Ldsu;
-
parse
- Specified by:
parse
in classProperty<Boolean>
- Mappings:
Namespace Name Mixin selector named parse
Lnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;
intermediary method_11900
Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;
official b
Ldtg;b(Ljava/lang/String;)Ljava/util/Optional;
-
name
Description copied from class:Property
Returns the name of the given value of this property.- Specified by:
name
in classProperty<Boolean>
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/state/property/BooleanProperty;name(Ljava/lang/Boolean;)Ljava/lang/String;
intermediary method_11826
Lnet/minecraft/class_2746;method_11826(Ljava/lang/Boolean;)Ljava/lang/String;
official a
Ldsu;a(Ljava/lang/Boolean;)Ljava/lang/String;
-
equals
-
computeHashCode
public int computeHashCode()- Overrides:
computeHashCode
in classProperty<Boolean>
- Mappings:
Namespace Name Mixin selector named computeHashCode
Lnet/minecraft/state/property/Property;computeHashCode()I
intermediary method_11799
Lnet/minecraft/class_2769;method_11799()I
official b
Ldtg;b()I
-