Class TagHooks

java.lang.Object
me.shedaniel.architectury.hooks.TagHooks

public final class TagHooks extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.tags.Tag.Named<net.minecraft.world.level.block.Block>
    getBlockOptional(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.tags.Tag.Named<net.minecraft.world.entity.EntityType<?>>
    getEntityTypeOptional(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.tags.Tag.Named<net.minecraft.world.level.material.Fluid>
    getFluidOptional(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.tags.Tag.Named<net.minecraft.world.item.Item>
    getItemOptional(net.minecraft.resources.ResourceLocation id)
     
    static <T> net.minecraft.tags.Tag.Named<T>
    getOptional(net.minecraft.resources.ResourceLocation id, Supplier<net.minecraft.tags.TagCollection<T>> collection)
     

    Methods inherited from class java.lang.Object

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

    • getOptional

      public static <T> net.minecraft.tags.Tag.Named<T> getOptional(net.minecraft.resources.ResourceLocation id, Supplier<net.minecraft.tags.TagCollection<T>> collection)
    • getItemOptional

      public static net.minecraft.tags.Tag.Named<net.minecraft.world.item.Item> getItemOptional(net.minecraft.resources.ResourceLocation id)
    • getBlockOptional

      public static net.minecraft.tags.Tag.Named<net.minecraft.world.level.block.Block> getBlockOptional(net.minecraft.resources.ResourceLocation id)
    • getFluidOptional

      public static net.minecraft.tags.Tag.Named<net.minecraft.world.level.material.Fluid> getFluidOptional(net.minecraft.resources.ResourceLocation id)
    • getEntityTypeOptional

      public static net.minecraft.tags.Tag.Named<net.minecraft.world.entity.EntityType<?>> getEntityTypeOptional(net.minecraft.resources.ResourceLocation id)