Class Tags

java.lang.Object
dev.latvian.mods.kubejs.util.Tags

public class Tags extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome>
    biome(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>
    block(net.minecraft.resources.ResourceLocation id)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>>
    byBlock(net.minecraft.world.level.block.Block block)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>>
    byBlockState(net.minecraft.world.level.block.state.BlockState state)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>>
    byEntity(net.minecraft.world.entity.Entity entity)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>>
    byEntityType(net.minecraft.world.entity.EntityType<?> entityType)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>>
    byFluid(net.minecraft.world.level.material.Fluid fluid)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>>
    byItem(net.minecraft.world.item.Item item)
     
    static Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>>
    byItemStack(net.minecraft.world.item.ItemStack stack)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>
    entityType(net.minecraft.resources.ResourceLocation id)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>
    fluid(net.minecraft.resources.ResourceLocation id)
     
    static <T> Stream<net.minecraft.tags.TagKey<T>>
    forType(dev.latvian.mods.rhino.Context cx, T object, net.minecraft.core.Registry<T> registry)
     
    static net.minecraft.tags.TagKey<net.minecraft.world.item.Item>
    item(net.minecraft.resources.ResourceLocation id)
     

    Methods inherited from class java.lang.Object

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

    • Tags

      public Tags()
  • Method Details

    • item

      public static net.minecraft.tags.TagKey<net.minecraft.world.item.Item> item(net.minecraft.resources.ResourceLocation id)
    • block

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> block(net.minecraft.resources.ResourceLocation id)
    • fluid

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid> fluid(net.minecraft.resources.ResourceLocation id)
    • entityType

      public static net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>> entityType(net.minecraft.resources.ResourceLocation id)
    • biome

      public static net.minecraft.tags.TagKey<net.minecraft.world.level.biome.Biome> biome(net.minecraft.resources.ResourceLocation id)
    • byItemStack

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> byItemStack(net.minecraft.world.item.ItemStack stack)
    • byItem

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> byItem(net.minecraft.world.item.Item item)
    • byBlockState

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> byBlockState(net.minecraft.world.level.block.state.BlockState state)
    • byBlock

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> byBlock(net.minecraft.world.level.block.Block block)
    • byFluid

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>> byFluid(net.minecraft.world.level.material.Fluid fluid)
    • byEntity

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> byEntity(net.minecraft.world.entity.Entity entity)
    • byEntityType

      public static Stream<net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> byEntityType(net.minecraft.world.entity.EntityType<?> entityType)
    • forType

      public static <T> Stream<net.minecraft.tags.TagKey<T>> forType(dev.latvian.mods.rhino.Context cx, T object, net.minecraft.core.Registry<T> registry)