mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Add ItemHideFlag#HIDE_DYE
This commit is contained in:
parent
2ef8e957a0
commit
8075cab011
@ -4,18 +4,15 @@ package net.minestom.server.item;
|
||||
* Represents a hide flag which can be applied to an {@link ItemStack} using {@link ItemMetaBuilder#hideFlag(int)}.
|
||||
*/
|
||||
public enum ItemHideFlag {
|
||||
HIDE_ENCHANTS(1),
|
||||
HIDE_ATTRIBUTES(2),
|
||||
HIDE_UNBREAKABLE(4),
|
||||
HIDE_DESTROYS(8),
|
||||
HIDE_PLACED_ON(16),
|
||||
HIDE_POTION_EFFECTS(32);
|
||||
HIDE_ENCHANTS,
|
||||
HIDE_ATTRIBUTES,
|
||||
HIDE_UNBREAKABLE,
|
||||
HIDE_DESTROYS,
|
||||
HIDE_PLACED_ON,
|
||||
HIDE_POTION_EFFECTS,
|
||||
HIDE_DYE;
|
||||
|
||||
private final int bitFieldPart;
|
||||
|
||||
ItemHideFlag(int bit) {
|
||||
this.bitFieldPart = bit;
|
||||
}
|
||||
private final int bitFieldPart = 1 << this.ordinal();
|
||||
|
||||
public int getBitFieldPart() {
|
||||
return bitFieldPart;
|
||||
|
Loading…
Reference in New Issue
Block a user