Class BooleanProperty

java.lang.Object
net.minecraft.state.property.AbstractProperty<Boolean>
net.minecraft.state.property.BooleanProperty
All Implemented Interfaces:
Property<Boolean>

public class BooleanProperty extends AbstractProperty<Boolean>
Mappings:
Namespace Name
official atx
intermediary net/minecraft/class_2243
named net/minecraft/state/property/BooleanProperty
  • Field Details

    • values

      private final ImmutableSet<Boolean> values
      Mappings:
      Namespace Name Mixin selector
      official a Latx;a:Lcom/google/common/collect/ImmutableSet;
      intermediary field_9924 Lnet/minecraft/class_2243;field_9924:Lcom/google/common/collect/ImmutableSet;
      named values Lnet/minecraft/state/property/BooleanProperty;values:Lcom/google/common/collect/ImmutableSet;
  • Constructor Details

    • BooleanProperty

      protected BooleanProperty(String id)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latx;<init>(Ljava/lang/String;)V
      intermediary <init> Lnet/minecraft/class_2243;<init>(Ljava/lang/String;)V
      named <init> Lnet/minecraft/state/property/BooleanProperty;<init>(Ljava/lang/String;)V
  • Method Details

    • getValues

      public Collection<Boolean> getValues()
      Mappings:
      Namespace Name Mixin selector
      official c Laub;c()Ljava/util/Collection;
      intermediary method_9082 Lnet/minecraft/class_2247;method_9082()Ljava/util/Collection;
      named getValues Lnet/minecraft/state/property/Property;getValues()Ljava/util/Collection;
    • of

      public static BooleanProperty of(String name)
      Mappings:
      Namespace Name Mixin selector
      official a Latx;a(Ljava/lang/String;)Latx;
      intermediary method_9068 Lnet/minecraft/class_2243;method_9068(Ljava/lang/String;)Lnet/minecraft/class_2243;
      named of Lnet/minecraft/state/property/BooleanProperty;of(Ljava/lang/String;)Lnet/minecraft/state/property/BooleanProperty;
    • method_11749

      public Optional<Boolean> method_11749(String string)
      Mappings:
      Namespace Name Mixin selector
      official b Laub;b(Ljava/lang/String;)Lcom/google/common/base/Optional;
      intermediary method_11749 Lnet/minecraft/class_2247;method_11749(Ljava/lang/String;)Lcom/google/common/base/Optional;
      named method_11749 Lnet/minecraft/state/property/Property;method_11749(Ljava/lang/String;)Lcom/google/common/base/Optional;
    • name

      public String name(Boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official a Latx;a(Ljava/lang/Boolean;)Ljava/lang/String;
      intermediary method_9067 Lnet/minecraft/class_2243;method_9067(Ljava/lang/Boolean;)Ljava/lang/String;
      named name Lnet/minecraft/state/property/BooleanProperty;name(Ljava/lang/Boolean;)Ljava/lang/String;
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractProperty<Boolean>
      Mappings:
      Namespace Name Mixin selector
      official equals Latw;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_2242;equals(Ljava/lang/Object;)Z
      named equals Lnet/minecraft/state/property/AbstractProperty;equals(Ljava/lang/Object;)Z
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class AbstractProperty<Boolean>
      Mappings:
      Namespace Name Mixin selector
      official hashCode Latw;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2242;hashCode()I
      named hashCode Lnet/minecraft/state/property/AbstractProperty;hashCode()I