Class ExpandBundleContents.ExpandBundleContentsMutable
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBundleContents.ExpandBundleContentsMutable
- Enclosing class:
ExpandBundleContents
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.world.item.component.BundleContents.MutableclearItems(net.minecraft.world.item.component.BundleContents.Mutable internal) Clears the items of the MutableBundleContents.static net.minecraft.world.item.component.BundleContents.Mutableof(net.minecraft.world.item.component.BundleContents contents) Creates a new MutableBundleContents with the given contents.static IItemStackremoveOne(net.minecraft.world.item.component.BundleContents.Mutable internal) Removes one item from the MutableBundleContents.static net.minecraft.world.item.component.BundleContentstoImmutable(net.minecraft.world.item.component.BundleContents.Mutable internal) Converts the MutableBundleContents to an immutable BundleContents.static inttryInsert(net.minecraft.world.item.component.BundleContents.Mutable internal, net.minecraft.world.item.ItemStack stack) Tries to insert the given item into the MutableBundleContents.
-
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.
-