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

Method setItemMeta

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

Set the ItemMeta of this ItemStack. @param itemMeta new ItemMeta, or null to indicate meta data be cleared. @return True if successfully applied ItemMeta, see ItemFactory#isApplicable(ItemMeta, ItemStack) @throws IllegalArgumentException if the item meta was not created by the {@lin

(@Nullable ItemMeta itemMeta)

Source from the content-addressed store, hash-verified

568 * the {@link ItemFactory}
569 */
570 public boolean setItemMeta(@Nullable ItemMeta itemMeta) {
571 return setItemMeta0(itemMeta, type);
572 }
573
574 /*
575 * Cannot be overridden, so it's safe for constructor call

Callers 5

asBukkitCopyMethod · 0.95
toItemStackMethod · 0.95
setDurabilityMethod · 0.95
deserializeMethod · 0.95
applyMethod · 0.45

Calls 1

setItemMeta0Method · 0.95

Tested by

no test coverage detected