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 - dxp
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.state.property.PropertyProperty.Value<T extends Comparable<T>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionReturns all possible values of this property.Returns the name of the given value of this property.static BooleanPropertyCreates a boolean property.intMethods inherited from class net.minecraft.state.property.PropertycomputeHashCode, createValue, createValue, equals, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
- 
Field Details- 
values- Mappings:
- Namespace - Name - Mixin selector - named - values- Lnet/minecraft/state/property/BooleanProperty;values:Ljava/util/List;- intermediary - field_12575- Lnet/minecraft/class_2746;field_12575:Ljava/util/List;- official - a- Ldxp;a:Ljava/util/List;
 
- 
TRUE_ORDINALprivate static final int TRUE_ORDINAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - TRUE_ORDINAL- Lnet/minecraft/state/property/BooleanProperty;TRUE_ORDINAL:I- intermediary - field_54327- Lnet/minecraft/class_2746;field_54327:I- official - b- Ldxp;b:I
 
- 
FALSE_ORDINALprivate static final int FALSE_ORDINAL- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - FALSE_ORDINAL- Lnet/minecraft/state/property/BooleanProperty;FALSE_ORDINAL:I- intermediary - field_54328- Lnet/minecraft/class_2746;field_54328:I- official - c- Ldxp;c:I
 
 
- 
- 
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>- Ldxp;<init>(Ljava/lang/String;)V
 
 
- 
- 
Method Details- 
getValuesReturns all possible values of this property.
- 
ofCreates 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- Ldxp;a(Ljava/lang/String;)Ldxp;
 
- 
parse- Specified by:
- parsein class- Property<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- Ldya;b(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 - 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- Ldxp;a(Ljava/lang/Boolean;)Ljava/lang/String;
 
- 
ordinal- Specified by:
- ordinalin class- Property<Boolean>
- Mappings:
- Namespace - Name - Mixin selector - named - ordinal- Lnet/minecraft/state/property/BooleanProperty;ordinal(Ljava/lang/Boolean;)I- intermediary - method_64219- Lnet/minecraft/class_2746;method_64219(Ljava/lang/Boolean;)I- official - b- Ldxp;b(Ljava/lang/Boolean;)I
 
 
-