Class EnumProperty<T extends Enum<T> & StringIdentifiable>

java.lang.Object
net.minecraft.state.property.AbstractProperty<T>
net.minecraft.state.property.EnumProperty<T>
All Implemented Interfaces:
Property<T>
Direct Known Subclasses:
DirectionProperty

public class EnumProperty<T extends Enum<T> & StringIdentifiable>
extends AbstractProperty<T>
Mappings:
Namespace Name
official amm
intermediary net/minecraft/class_390
named net/minecraft/state/property/EnumProperty
  • Field Details

    • values

      private final ImmutableSet<T extends Enum<T> & StringIdentifiable> values
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a:Lcom/google/common/collect/ImmutableSet;
      intermediary field_1541 Lnet/minecraft/class_390;field_1541:Lcom/google/common/collect/ImmutableSet;
      named values Lnet/minecraft/state/property/EnumProperty;values:Lcom/google/common/collect/ImmutableSet;
    • byName

      private final Map<String,​T extends Enum<T> & StringIdentifiable> byName
      Mappings:
      Namespace Name Mixin selector
      official b Lamm;b:Ljava/util/Map;
      intermediary field_1542 Lnet/minecraft/class_390;field_1542:Ljava/util/Map;
      named byName Lnet/minecraft/state/property/EnumProperty;byName:Ljava/util/Map;
  • Constructor Details

    • EnumProperty

      protected EnumProperty​(String name, Class<T> clazz, Collection<T> values)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lamm;<init>(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_390;<init>(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)V
      named <init> Lnet/minecraft/state/property/EnumProperty;<init>(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)V
  • Method Details

    • getValues

      public Collection<T> 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;
    • name

      public String name​(T t)
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a(Ljava/lang/Enum;)Ljava/lang/String;
      intermediary method_1271 Lnet/minecraft/class_390;method_1271(Ljava/lang/Enum;)Ljava/lang/String;
      named name Lnet/minecraft/state/property/EnumProperty;name(Ljava/lang/Enum;)Ljava/lang/String;
    • of

      public static <T extends Enum<T> & StringIdentifiable> EnumProperty<T> of​(String name, Class<T> type)
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a(Ljava/lang/String;Ljava/lang/Class;)Lamm;
      intermediary method_1272 Lnet/minecraft/class_390;method_1272(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/class_390;
      named of Lnet/minecraft/state/property/EnumProperty;of(Ljava/lang/String;Ljava/lang/Class;)Lnet/minecraft/state/property/EnumProperty;
    • of

      public static <T extends Enum<T> & StringIdentifiable> EnumProperty<T> of​(String name, Class<T> type, Predicate<T> pred)
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a(Ljava/lang/String;Ljava/lang/Class;Lcom/google/common/base/Predicate;)Lamm;
      intermediary method_1273 Lnet/minecraft/class_390;method_1273(Ljava/lang/String;Ljava/lang/Class;Lcom/google/common/base/Predicate;)Lnet/minecraft/class_390;
      named of Lnet/minecraft/state/property/EnumProperty;of(Ljava/lang/String;Ljava/lang/Class;Lcom/google/common/base/Predicate;)Lnet/minecraft/state/property/EnumProperty;
    • of

      public static <T extends Enum<T> & StringIdentifiable> EnumProperty<T> of​(String name, Class<T> type, T[] values)
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Enum;)Lamm;
      intermediary method_1275 Lnet/minecraft/class_390;method_1275(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Enum;)Lnet/minecraft/class_390;
      named of Lnet/minecraft/state/property/EnumProperty;of(Ljava/lang/String;Ljava/lang/Class;[Ljava/lang/Enum;)Lnet/minecraft/state/property/EnumProperty;
    • of

      public static <T extends Enum<T> & StringIdentifiable> EnumProperty<T> of​(String name, Class<T> type, Collection<T> values)
      Mappings:
      Namespace Name Mixin selector
      official a Lamm;a(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)Lamm;
      intermediary method_1274 Lnet/minecraft/class_390;method_1274(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)Lnet/minecraft/class_390;
      named of Lnet/minecraft/state/property/EnumProperty;of(Ljava/lang/String;Ljava/lang/Class;Ljava/util/Collection;)Lnet/minecraft/state/property/EnumProperty;