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/BooleanPropertyintermediary net/minecraft/class_2746official ech
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.state.property.Property
Property.Value<T extends Comparable<T>> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final int -
Constructor Summary
Constructors -
Method Summary
Modifier 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.Property
computeHashCode, createValue, createValue, equals, getCodec, getName, getType, getValueCodec, hashCode, parse, stream, toString
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector named VALUESLnet/minecraft/state/property/BooleanProperty;VALUES:Ljava/util/List;intermediary field_12575Lnet/minecraft/class_2746;field_12575:Ljava/util/List;official aLech;a:Ljava/util/List;
-
TRUE_ORDINAL
private static final int TRUE_ORDINAL- See Also:
- Mappings:
Namespace Name Mixin selector named TRUE_ORDINALLnet/minecraft/state/property/BooleanProperty;TRUE_ORDINAL:Iintermediary field_54327Lnet/minecraft/class_2746;field_54327:Iofficial bLech;b:I
-
FALSE_ORDINAL
private static final int FALSE_ORDINAL- See Also:
- Mappings:
Namespace Name Mixin selector named FALSE_ORDINALLnet/minecraft/state/property/BooleanProperty;FALSE_ORDINAL:Iintermediary field_54328Lnet/minecraft/class_2746;field_54328:Iofficial cLech;c:I
-
-
Constructor Details
-
BooleanProperty
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/state/property/BooleanProperty;<init>(Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_2746;<init>(Ljava/lang/String;)Vofficial <init>Lech;<init>(Ljava/lang/String;)V
-
-
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- Mappings:
Namespace Name Mixin selector named ofLnet/minecraft/state/property/BooleanProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/BooleanProperty;intermediary method_11825Lnet/minecraft/class_2746;method_11825(Ljava/lang/String;)Lnet/minecraft/class_2746;official aLech;a(Ljava/lang/String;)Lech;
-
parse
- Specified by:
parsein classProperty<Boolean>- Mappings:
Namespace Name Mixin selector named parseLnet/minecraft/state/property/Property;parse(Ljava/lang/String;)Ljava/util/Optional;intermediary method_11900Lnet/minecraft/class_2769;method_11900(Ljava/lang/String;)Ljava/util/Optional;official bLect;b(Ljava/lang/String;)Ljava/util/Optional;
-
name
Description copied from class:PropertyReturns the name of the given value of this property.- Specified by:
namein classProperty<Boolean>- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/state/property/BooleanProperty;name(Ljava/lang/Boolean;)Ljava/lang/String;intermediary method_11826Lnet/minecraft/class_2746;method_11826(Ljava/lang/Boolean;)Ljava/lang/String;official aLech;a(Ljava/lang/Boolean;)Ljava/lang/String;
-
ordinal
- Specified by:
ordinalin classProperty<Boolean>- Mappings:
Namespace Name Mixin selector named ordinalLnet/minecraft/state/property/BooleanProperty;ordinal(Ljava/lang/Boolean;)Iintermediary method_64219Lnet/minecraft/class_2746;method_64219(Ljava/lang/Boolean;)Iofficial bLech;b(Ljava/lang/Boolean;)I
-