mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-23 16:41:35 +01:00
Added ItemMetaBuilder#hideFlag with varargs
This commit is contained in:
parent
6218d2a78e
commit
992f7feb77
@ -42,6 +42,15 @@ public abstract class ItemMetaBuilder implements Cloneable {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Contract("_ -> this")
|
||||
public @NotNull ItemMetaBuilder hideFlag(@NotNull ItemHideFlag... hideFlags) {
|
||||
int result = 0;
|
||||
for (ItemHideFlag hideFlag : hideFlags) {
|
||||
result |= hideFlag.getBitFieldPart();
|
||||
}
|
||||
return hideFlag(result);
|
||||
}
|
||||
|
||||
@Contract("_ -> this")
|
||||
public @NotNull ItemMetaBuilder displayName(@Nullable Component displayName) {
|
||||
this.displayName = displayName;
|
||||
|
Loading…
Reference in New Issue
Block a user