Class IntProperty

All Implemented Interfaces:
Property<Integer>

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

    • values

      private final ImmutableSet<Integer> values
      Mappings:
      Namespace Name Mixin selector
      official a Lamn;a:Lcom/google/common/collect/ImmutableSet;
      intermediary field_1543 Lnet/minecraft/class_391;field_1543: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> Lamn;<init>(Ljava/lang/String;II)V
      intermediary <init> Lnet/minecraft/class_391;<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 Lamo;c()Ljava/util/Collection;
      intermediary method_1281 Lnet/minecraft/class_392;method_1281()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 Lamj;equals(Ljava/lang/Object;)Z
      intermediary equals Lnet/minecraft/class_387;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 Lamj;hashCode()I
      intermediary hashCode Lnet/minecraft/class_387;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 Lamn;a(Ljava/lang/String;II)Lamn;
      intermediary method_1277 Lnet/minecraft/class_391;method_1277(Ljava/lang/String;II)Lnet/minecraft/class_391;
      named of Lnet/minecraft/state/property/IntProperty;of(Ljava/lang/String;II)Lnet/minecraft/state/property/IntProperty;
    • name

      public String name​(Integer integer)
      Mappings:
      Namespace Name Mixin selector
      official a Lamn;a(Ljava/lang/Integer;)Ljava/lang/String;
      intermediary method_1276 Lnet/minecraft/class_391;method_1276(Ljava/lang/Integer;)Ljava/lang/String;
      named name Lnet/minecraft/state/property/IntProperty;name(Ljava/lang/Integer;)Ljava/lang/String;