Package net.minecraft.state.property
Class BooleanProperty
Represents a property that has boolean values.
 
See Properties for example
 usages.
- Mappings:
- Namespace - Name - official - dcs- intermediary - net/minecraft/class_2746- named - net/minecraft/state/property/BooleanProperty
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.state.property.PropertyProperty.Value<T extends Comparable<T>>
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintbooleanReturns all possible values of this property.Returns the name of the given value of this property.static BooleanPropertyCreates a boolean property.Methods inherited from class net.minecraft.state.property.PropertycreateValue, createValue, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
- 
Field Details- 
values- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcs;a:Lcom/google/common/collect/ImmutableSet;- intermediary - field_12575- Lnet/minecraft/class_2746;field_12575:Lcom/google/common/collect/ImmutableSet;- named - values- Lnet/minecraft/state/property/BooleanProperty;values:Lcom/google/common/collect/ImmutableSet;
 
 
- 
- 
Constructor Details- 
BooleanProperty- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Ldcs;<init>(Ljava/lang/String;)V- intermediary - <init>- Lnet/minecraft/class_2746;<init>(Ljava/lang/String;)V- named - <init>- Lnet/minecraft/state/property/BooleanProperty;<init>(Ljava/lang/String;)V
 
 
- 
- 
Method Details- 
getValuesReturns all possible values of this property.- Specified by:
- getValuesin class- Property<Boolean>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldde;a()Ljava/util/Collection;- intermediary - method_11898- Lnet/minecraft/class_2769;method_11898()Ljava/util/Collection;- named - getValues- Lnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
 
- 
ofCreates a boolean property.- Parameters:
- name- the name of the property; see the note on the name
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcs;a(Ljava/lang/String;)Ldcs;- intermediary - method_11825- Lnet/minecraft/class_2746;method_11825(Ljava/lang/String;)Lnet/minecraft/class_2746;- named - of- Lnet/minecraft/state/property/BooleanProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/BooleanProperty;
 
- 
parse- Specified by:
- parsein class- Property<Boolean>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldde;b(Ljava/lang/String;)Ljava/util/Optional;- intermediary - method_11900- Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;- named - parse- Lnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;
 
- 
nameDescription copied from class:PropertyReturns the name of the given value of this property.- Specified by:
- namein class- Property<Boolean>
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldcs;a(Ljava/lang/Boolean;)Ljava/lang/String;- intermediary - method_11826- Lnet/minecraft/class_2746;method_11826(Ljava/lang/Boolean;)Ljava/lang/String;- named - name- Lnet/minecraft/state/property/BooleanProperty;name(Ljava/lang/Boolean;)Ljava/lang/String;
 
- 
equals
- 
computeHashCodepublic int computeHashCode()- Overrides:
- computeHashCodein class- Property<Boolean>
- Mappings:
- Namespace - Name - Mixin selector - official - b- Ldde;b()I- intermediary - method_11799- Lnet/minecraft/class_2769;method_11799()I- named - computeHashCode- Lnet/minecraft/state/property/Property;computeHashCode()I
 
 
-