Class IntProperty

All Implemented Interfaces:
Property<Integer>

public class IntProperty extends AbstractProperty<Integer>
Mappings:
Namespace Name
official axi
intermediary net/minecraft/class_2246
named net/minecraft/state/property/IntProperty
  • Field Details

    • values

      private final ImmutableSet<Integer> values
      Mappings:
      Namespace Name Mixin selector
      official a Laxi;a:Lcom/google/common/collect/ImmutableSet;
      intermediary field_9927 Lnet/minecraft/class_2246;field_9927:Lcom/google/common/collect/ImmutableSet;
      named values Lnet/minecraft/state/property/IntProperty;values:Lcom/google/common/collect/ImmutableSet;
  • Constructor Details

    • IntProperty

      protected IntProperty(String name, int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxi;<init>(Ljava/lang/String;II)V
      intermediary <init> Lnet/minecraft/class_2246;<init>(Ljava/lang/String;II)V
      named <init> Lnet/minecraft/state/property/IntProperty;<init>(Ljava/lang/String;II)V
  • Method Details

    • getValues

      public Collection<Integer> getValues()
      Mappings:
      Namespace Name Mixin selector
      official c Laxj;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;
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class AbstractProperty<Integer>
      Mappings:
      Namespace Name Mixin selector
      official equals Laxe;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<Integer>
      Mappings:
      Namespace Name Mixin selector
      official hashCode Laxe;hashCode()I
      intermediary hashCode Lnet/minecraft/class_2242;hashCode()I
      named hashCode Lnet/minecraft/state/property/AbstractProperty;hashCode()I
    • of

      public static IntProperty of(String name, int min, int max)
      Mappings:
      Namespace Name Mixin selector
      official a Laxi;a(Ljava/lang/String;II)Laxi;
      intermediary method_9078 Lnet/minecraft/class_2246;method_9078(Ljava/lang/String;II)Lnet/minecraft/class_2246;
      named of Lnet/minecraft/state/property/IntProperty;of(Ljava/lang/String;II)Lnet/minecraft/state/property/IntProperty;
    • method_11749

      public Optional<Integer> method_11749(String string)
      Mappings:
      Namespace Name Mixin selector
      official b Laxj;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(Integer integer)
      Mappings:
      Namespace Name Mixin selector
      official a Laxi;a(Ljava/lang/Integer;)Ljava/lang/String;
      intermediary method_9077 Lnet/minecraft/class_2246;method_9077(Ljava/lang/Integer;)Ljava/lang/String;
      named name Lnet/minecraft/state/property/IntProperty;name(Ljava/lang/Integer;)Ljava/lang/String;