Class ExpandBundleContents
java.lang.Object
com.blamejared.crafttweaker.natives.item.component.ExpandBundleContents
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisEmpty(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.BundleContentsof(List<IItemStack> items) Creates a new BundleContents with the given items.static intsize(net.minecraft.world.item.component.BundleContents internal) Gets the size of the BundleContents.
-
Constructor Details
-
ExpandBundleContents
public ExpandBundleContents()
-
-
Method Details
-
of
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.
-