Class Tag<T>

java.lang.Object
net.minecraft.tags.Tag<T>
All Implemented Interfaces:
ITag<T>

public class Tag<T> extends Object implements ITag<T>
  • Field Details

    • valuesList

      private final com.google.common.collect.ImmutableList<T> valuesList
    • values

      private final Set<T> values
    • closestCommonSuperType

      protected final Class<?> closestCommonSuperType
  • Constructor Details

    • Tag

      protected Tag(Set<T> p_i241226_1_, Class<?> p_i241226_2_)
  • Method Details

    • empty

      public static <T> Tag<T> empty()
    • create

      public static <T> Tag<T> create(Set<T> p_241286_0_)
    • contains

      public boolean contains(T p_230235_1_)
      Specified by:
      contains in interface ITag<T>
    • getValues

      public List<T> getValues()
      Specified by:
      getValues in interface ITag<T>
    • findCommonSuperClass

      private static <T> Class<?> findCommonSuperClass(Set<T> p_241287_0_)
    • findClosestAncestor

      private static Class<?> findClosestAncestor(Class<?> p_241285_0_, Class<?> p_241285_1_)