MCPcopy Create free account
hub / github.com/Teneted/Tenet / getMaxStackSize

Method getMaxStackSize

src/main/java/org/bukkit/inventory/ItemStack.java:237–244  ·  view source on GitHub ↗

Get the maximum stacksize for the material hold in this ItemStack. (Returns -1 if it has no idea) @return The maximum you can stack this material to.

()

Source from the content-addressed store, hash-verified

235 * @return The maximum you can stack this material to.
236 */
237 @Utility
238 public int getMaxStackSize() {
239 Material material = getType();
240 if (material != null) {
241 return material.getMaxStackSize();
242 }
243 return -1;
244 }
245
246 private void createData(final byte data) {
247 this.data = type.getNewData(data);

Callers 8

firstPartialMethod · 0.95
addItemMethod · 0.95
extractHookMethod · 0.95
extractItemMethod · 0.95
extractItemMethod · 0.95
insertItemMethod · 0.95
insertItemMethod · 0.95

Calls 2

getTypeMethod · 0.95
getMaxStackSizeMethod · 0.95

Tested by

no test coverage detected