Package me.shedaniel.architectury.hooks
Class TagHooks
java.lang.Object
me.shedaniel.architectury.hooks.TagHooks
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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)
-
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)
-