MCPcopy Create free account
hub / github.com/LoomDev/Loom / split

Method split

api/src/main/java/org/loomdev/api/item/ItemStack.java:111–111  ·  view source on GitHub ↗

Splits the item stack into two stacks. {@code ItemStack firstStack = ItemStack.builder().type(ItemType.STONE).amount(45).build(); // Split the original ItemStack in two. ItemStack secondStack = firstStack.split(15); firstStack.getAmount(); // Amount = 30 secondStack.getAmount(); // Amount =

(int splitCount)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

NamespacedKeyMethod · 0.65
safeKeySplitMethod · 0.65
splitMethod · 0.65
executeMethod · 0.65
suggestMethod · 0.65

Implementers 1

ItemStackImplserver/src/main/java/org/loomdev/loom/

Calls

no outgoing calls

Tested by

no test coverage detected