mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-23 04:54:59 +02:00
Shortcut for withMeta
This commit is contained in:
parent
74e00bc70c
commit
b8e6d95880
|
@ -147,7 +147,7 @@ public final class ItemStack implements TagReadable, HoverEventSource<HoverEvent
|
|||
@ApiStatus.Experimental
|
||||
@Contract(value = "_ -> new", pure = true)
|
||||
public @NotNull ItemStack withMeta(@NotNull ItemMeta meta) {
|
||||
return builder().meta(meta).build();
|
||||
return new ItemStack(material, amount, meta, stackingRule);
|
||||
}
|
||||
|
||||
@Contract(pure = true)
|
||||
|
|
Loading…
Reference in New Issue
Block a user