Class TagUtils

java.lang.Object
net.frozenblock.lib.tag.api.TagUtils

public final class TagUtils extends Object
Contains methods related to TagKeys.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> T
    getRandomEntry(net.minecraft.tags.TagKey<T> tag)
     
    static <T> T
    getRandomEntry(net.minecraft.util.RandomSource random, net.minecraft.tags.TagKey<T> tag)
     
    static <T> boolean
    isIn(@Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.tags.TagKey<T> tagKey, T entry)
     
    static <T> boolean
    isIn(net.minecraft.tags.TagKey<T> tagKey, T entry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getRandomEntry

      @Nullable public static <T> T getRandomEntry(net.minecraft.tags.TagKey<T> tag)
    • getRandomEntry

      @Nullable public static <T> T getRandomEntry(net.minecraft.util.RandomSource random, net.minecraft.tags.TagKey<T> tag)
    • isIn

      public static <T> boolean isIn(net.minecraft.tags.TagKey<T> tagKey, T entry)
    • isIn

      public static <T> boolean isIn(@Nullable @Nullable net.minecraft.core.RegistryAccess registryAccess, net.minecraft.tags.TagKey<T> tagKey, T entry)