Class ExpandChargedProjectiles

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandChargedProjectiles

@ZenRegister public class ExpandChargedProjectiles extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    contains(net.minecraft.world.item.component.ChargedProjectiles internal, net.minecraft.world.item.Item item)
    Checks if the ChargedProjectiles contains the given item.
    getItems(net.minecraft.world.item.component.ChargedProjectiles internal)
    Gets the items of the ChargedProjectiles.
    static boolean
    isEmpty(net.minecraft.world.item.component.ChargedProjectiles internal)
    Checks if the ChargedProjectiles is empty.
    static net.minecraft.world.item.component.ChargedProjectiles
    of(IItemStack stack)
    Creates a new ChargedProjectiles with the given item.
    static net.minecraft.world.item.component.ChargedProjectiles
    of(List<IItemStack> stacks)
    Creates a new ChargedProjectiles with the given items.

    Methods inherited from class java.lang.Object

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

    • ExpandChargedProjectiles

      public ExpandChargedProjectiles()
  • Method Details

    • of

      public static net.minecraft.world.item.component.ChargedProjectiles of(IItemStack stack)
      Creates a new ChargedProjectiles with the given item.
      Parameters:
      stack - The item to create the ChargedProjectiles from.
      Returns:
      The new ChargedProjectiles.
    • of

      public static net.minecraft.world.item.component.ChargedProjectiles of(List<IItemStack> stacks)
      Creates a new ChargedProjectiles with the given items.
      Parameters:
      stacks - The items to create the ChargedProjectiles from.
      Returns:
      The new ChargedProjectiles.
    • contains

      public static boolean contains(net.minecraft.world.item.component.ChargedProjectiles internal, net.minecraft.world.item.Item item)
      Checks if the ChargedProjectiles contains the given item.
      Parameters:
      internal - The ChargedProjectiles.
      item - The item to check for.
      Returns:
      Whether the ChargedProjectiles contains the given item.
    • getItems

      public static List<IItemStack> getItems(net.minecraft.world.item.component.ChargedProjectiles internal)
      Gets the items of the ChargedProjectiles.
      Parameters:
      internal - The ChargedProjectiles.
      Returns:
      The items of the ChargedProjectiles.
    • isEmpty

      public static boolean isEmpty(net.minecraft.world.item.component.ChargedProjectiles internal)
      Checks if the ChargedProjectiles is empty.
      Parameters:
      internal - The ChargedProjectiles.
      Returns:
      Whether the ChargedProjectiles is empty.