Class SetTag<T>

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

public class SetTag<T> extends Object implements Tag<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

    • SetTag

      protected SetTag(Set<T> p_13214_, Class<?> p_13215_)
  • Method Details

    • empty

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

      public static <T> SetTag<T> create(Set<T> p_13223_)
    • contains

      public boolean contains(T p_13221_)
      Specified by:
      contains in interface Tag<T>
    • getValues

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

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

      private static Class<?> findClosestAncestor(Class<?> p_13218_, Class<?> p_13219_)