mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-26 05:32:50 +02: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;
|
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")
|
@Contract("_ -> this")
|
||||||
public @NotNull ItemMetaBuilder displayName(@Nullable Component displayName) {
|
public @NotNull ItemMetaBuilder displayName(@Nullable Component displayName) {
|
||||||
this.displayName = displayName;
|
this.displayName = displayName;
|
||||||
|
Loading…
Reference in New Issue
Block a user