Class ExpandItemTag

java.lang.Object
com.blamejared.crafttweaker.api.tag.expand.ExpandItemTag

@ZenRegister public class ExpandItemTag extends Object
This expansion specifically targets itemTags. It adds implicit casters to IIngredient and IData, so that you can use them wherever you can use IIngredient.

Only downside is that if you want to use Ingredient Transformers, you will need to call `asIIngredient()` first.

  • Constructor Details

    • ExpandItemTag

      public ExpandItemTag()
  • Method Details

    • asIIngredient

      public static IIngredient asIIngredient(KnownTag<net.minecraft.world.item.Item> internal)
    • asIData

      public static IData asIData(KnownTag<net.minecraft.world.item.Item> internal)
    • add

      public static void add(KnownTag<net.minecraft.world.item.Item> internal, List<IItemStack> items)
    • asIIngredientWithAmount

      public static IIngredientWithAmount asIIngredientWithAmount(KnownTag<net.minecraft.world.item.Item> _this)