Class ExpandBundleContents

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

@ZenRegister public class ExpandBundleContents extends Object
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isEmpty(net.minecraft.world.item.component.BundleContents internal)
    Checks if the BundleContents is empty.
    static Iterable<net.minecraft.world.item.ItemStack>
    items(net.minecraft.world.item.component.BundleContents internal)
    Gets the items of the BundleContents.
    static net.minecraft.world.item.component.BundleContents
    of(List<IItemStack> items)
    Creates a new BundleContents with the given items.
    static int
    size(net.minecraft.world.item.component.BundleContents internal)
    Gets the size of the BundleContents.

    Methods inherited from class java.lang.Object

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

    • ExpandBundleContents

      public ExpandBundleContents()
  • Method Details

    • of

      public static net.minecraft.world.item.component.BundleContents of(List<IItemStack> items)
      Creates a new BundleContents with the given items.
      Parameters:
      items - The items to add to the bundle.
      Returns:
      The new BundleContents.
    • items

      public static Iterable<net.minecraft.world.item.ItemStack> items(net.minecraft.world.item.component.BundleContents internal)
      Gets the items of the BundleContents.
      Parameters:
      internal - The BundleContents.
      Returns:
      The items of the BundleContents.
    • isEmpty

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

      public static int size(net.minecraft.world.item.component.BundleContents internal)
      Gets the size of the BundleContents.
      Parameters:
      internal - The BundleContents.
      Returns:
      The size of the BundleContents.