public class TagUtil
extends java.lang.Object
| Constructor and Description |
|---|
TagUtil() |
| Modifier and Type | Method and Description |
|---|---|
static net.minecraft.tags.ITagCollection<net.minecraft.block.Block> |
getAllBlockTags(net.minecraft.world.World world) |
static <T> java.util.Collection<T> |
getAllEntries(net.minecraft.tags.Tag<T>... tags) |
static <T> java.util.Collection<T> |
getAllEntries(net.minecraft.tags.Tag<T> tag) |
static net.minecraft.tags.ITagCollection<net.minecraft.fluid.Fluid> |
getAllFluidTags(net.minecraft.world.World world) |
static net.minecraft.tags.ITagCollection<net.minecraft.item.Item> |
getAllItemTags(net.minecraft.world.World world) |
static net.minecraft.tags.ITag<net.minecraft.block.Block> |
getBlockTag(net.minecraft.util.ResourceLocation resourceLocation) |
static net.minecraft.tags.ITag<net.minecraft.entity.EntityType<?>> |
getEntityTypeTag(net.minecraft.util.ResourceLocation resourceLocation) |
static net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> |
getFluidTag(net.minecraft.util.ResourceLocation resourceLocation) |
static net.minecraft.tags.ITag<net.minecraft.item.Item> |
getItemTag(net.minecraft.util.ResourceLocation resourceLocation) |
static net.minecraft.item.ItemStack |
getItemWithPreference(net.minecraft.tags.ITag<net.minecraft.item.Item> tag) |
static <T> net.minecraft.tags.ITag<T> |
getOrCreateTag(net.minecraft.tags.ITagCollection<T> collection,
net.minecraft.util.ResourceLocation resourceLocation) |
static <T> boolean |
hasTag(T type,
net.minecraft.tags.Tag<T> tag) |
public static <T> boolean hasTag(T type,
net.minecraft.tags.Tag<T> tag)
public static net.minecraft.tags.ITagCollection<net.minecraft.block.Block> getAllBlockTags(net.minecraft.world.World world)
public static net.minecraft.tags.ITagCollection<net.minecraft.item.Item> getAllItemTags(net.minecraft.world.World world)
public static net.minecraft.tags.ITagCollection<net.minecraft.fluid.Fluid> getAllFluidTags(net.minecraft.world.World world)
public static <T> java.util.Collection<T> getAllEntries(net.minecraft.tags.Tag<T>... tags)
public static <T> java.util.Collection<T> getAllEntries(net.minecraft.tags.Tag<T> tag)
public static <T> net.minecraft.tags.ITag<T> getOrCreateTag(net.minecraft.tags.ITagCollection<T> collection,
net.minecraft.util.ResourceLocation resourceLocation)
public static net.minecraft.tags.ITag<net.minecraft.item.Item> getItemTag(net.minecraft.util.ResourceLocation resourceLocation)
public static net.minecraft.tags.ITag<net.minecraft.block.Block> getBlockTag(net.minecraft.util.ResourceLocation resourceLocation)
public static net.minecraft.tags.ITag<net.minecraft.entity.EntityType<?>> getEntityTypeTag(net.minecraft.util.ResourceLocation resourceLocation)
public static net.minecraft.tags.ITag<net.minecraft.fluid.Fluid> getFluidTag(net.minecraft.util.ResourceLocation resourceLocation)
public static net.minecraft.item.ItemStack getItemWithPreference(net.minecraft.tags.ITag<net.minecraft.item.Item> tag)