Class ExpandBundleContents.ExpandBundleContentsMutable

java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBundleContents.ExpandBundleContentsMutable
Enclosing class:
ExpandBundleContents

@ZenRegister public static class ExpandBundleContents.ExpandBundleContentsMutable extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.minecraft.world.item.component.BundleContents.Mutable
    clearItems(net.minecraft.world.item.component.BundleContents.Mutable internal)
    Clears the items of the MutableBundleContents.
    static net.minecraft.world.item.component.BundleContents.Mutable
    of(net.minecraft.world.item.component.BundleContents contents)
    Creates a new MutableBundleContents with the given contents.
    static IItemStack
    removeOne(net.minecraft.world.item.component.BundleContents.Mutable internal)
    Removes one item from the MutableBundleContents.
    static net.minecraft.world.item.component.BundleContents
    toImmutable(net.minecraft.world.item.component.BundleContents.Mutable internal)
    Converts the MutableBundleContents to an immutable BundleContents.
    static int
    tryInsert(net.minecraft.world.item.component.BundleContents.Mutable internal, net.minecraft.world.item.ItemStack stack)
    Tries to insert the given item into the MutableBundleContents.

    Methods inherited from class java.lang.Object

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

    • ExpandBundleContentsMutable

      public ExpandBundleContentsMutable()
  • Method Details

    • of

      public static net.minecraft.world.item.component.BundleContents.Mutable of(net.minecraft.world.item.component.BundleContents contents)
      Creates a new MutableBundleContents with the given contents.
      Parameters:
      contents - The contents to add to the MutableBundleContents.
      Returns:
      The new MutableBundleContents.
    • clearItems

      public static net.minecraft.world.item.component.BundleContents.Mutable clearItems(net.minecraft.world.item.component.BundleContents.Mutable internal)
      Clears the items of the MutableBundleContents.
      Returns:
      The new MutableBundleContents.
    • toImmutable

      public static net.minecraft.world.item.component.BundleContents toImmutable(net.minecraft.world.item.component.BundleContents.Mutable internal)
      Converts the MutableBundleContents to an immutable BundleContents.
      Parameters:
      internal - The MutableBundleContents.
      Returns:
      The immutable BundleContents.
    • tryInsert

      public static int tryInsert(net.minecraft.world.item.component.BundleContents.Mutable internal, net.minecraft.world.item.ItemStack stack)
      Tries to insert the given item into the MutableBundleContents.
      Parameters:
      internal - The MutableBundleContents.
      stack - The item to insert.
      Returns:
      The number of items that were inserted.
    • removeOne

      public static IItemStack removeOne(net.minecraft.world.item.component.BundleContents.Mutable internal)
      Removes one item from the MutableBundleContents.
      Parameters:
      internal - The MutableBundleContents.
      Returns:
      The item that was removed.