Class SetTag<T>

java.lang.Object
net.minecraft.tag.SetTag<T>
All Implemented Interfaces:
Tag<T>

public class SetTag<T>
extends Object
implements Tag<T>
Mappings:
Namespace Name
official aez
intermediary net/minecraft/class_5394
named net/minecraft/tag/SetTag
  • Field Details

    • valueList

      private final ImmutableList<T> valueList
      Mappings:
      Namespace Name Mixin selector
      official b Laez;b:Lcom/google/common/collect/ImmutableList;
      intermediary field_25593 Lnet/minecraft/class_5394;field_25593:Lcom/google/common/collect/ImmutableList;
      named valueList Lnet/minecraft/tag/SetTag;valueList:Lcom/google/common/collect/ImmutableList;
    • valueSet

      private final Set<T> valueSet
      Mappings:
      Namespace Name Mixin selector
      official c Laez;c:Ljava/util/Set;
      intermediary field_25594 Lnet/minecraft/class_5394;field_25594:Ljava/util/Set;
      named valueSet Lnet/minecraft/tag/SetTag;valueSet:Ljava/util/Set;
    • type

      protected final Class<?> type
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a:Ljava/lang/Class;
      intermediary field_25591 Lnet/minecraft/class_5394;field_25591:Ljava/lang/Class;
      named type Lnet/minecraft/tag/SetTag;type:Ljava/lang/Class;
  • Constructor Details

    • SetTag

      protected SetTag​(Set<T> values, Class<?> type)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laez;<init>(Ljava/util/Set;Ljava/lang/Class;)V
      intermediary <init> Lnet/minecraft/class_5394;<init>(Ljava/util/Set;Ljava/lang/Class;)V
      named <init> Lnet/minecraft/tag/SetTag;<init>(Ljava/util/Set;Ljava/lang/Class;)V
  • Method Details

    • empty

      public static <T> SetTag<T> empty()
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a()Laez;
      intermediary method_29898 Lnet/minecraft/class_5394;method_29898()Lnet/minecraft/class_5394;
      named empty Lnet/minecraft/tag/SetTag;empty()Lnet/minecraft/tag/SetTag;
    • of

      public static <T> SetTag<T> of​(Set<T> values)
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a(Ljava/util/Set;)Laez;
      intermediary method_29900 Lnet/minecraft/class_5394;method_29900(Ljava/util/Set;)Lnet/minecraft/class_5394;
      named of Lnet/minecraft/tag/SetTag;of(Ljava/util/Set;)Lnet/minecraft/tag/SetTag;
    • contains

      public boolean contains​(T entry)
      Specified by:
      contains in interface Tag<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lafc;a(Ljava/lang/Object;)Z
      intermediary method_15141 Lnet/minecraft/class_3494;method_15141(Ljava/lang/Object;)Z
      named contains Lnet/minecraft/tag/Tag;contains(Ljava/lang/Object;)Z
    • values

      public List<T> values()
      Specified by:
      values in interface Tag<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lafc;b()Ljava/util/List;
      intermediary method_15138 Lnet/minecraft/class_3494;method_15138()Ljava/util/List;
      named values Lnet/minecraft/tag/Tag;values()Ljava/util/List;
    • getCommonType

      private static <T> Class<?> getCommonType​(Set<T> values)
      Mappings:
      Namespace Name Mixin selector
      official c Laez;c(Ljava/util/Set;)Ljava/lang/Class;
      intermediary method_29901 Lnet/minecraft/class_5394;method_29901(Ljava/util/Set;)Ljava/lang/Class;
      named getCommonType Lnet/minecraft/tag/SetTag;getCommonType(Ljava/util/Set;)Ljava/lang/Class;
    • getCommonType

      private static Class<?> getCommonType​(Class<?> first, Class<?> second)
      Mappings:
      Namespace Name Mixin selector
      official a Laez;a(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
      intermediary method_29899 Lnet/minecraft/class_5394;method_29899(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;
      named getCommonType Lnet/minecraft/tag/SetTag;getCommonType(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/Class;