mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +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)}.
|
* Represents a hide flag which can be applied to an {@link ItemStack} using {@link ItemMetaBuilder#hideFlag(int)}.
|
||||||
*/
|
*/
|
||||||
public enum ItemHideFlag {
|
public enum ItemHideFlag {
|
||||||
HIDE_ENCHANTS(1),
|
HIDE_ENCHANTS,
|
||||||
HIDE_ATTRIBUTES(2),
|
HIDE_ATTRIBUTES,
|
||||||
HIDE_UNBREAKABLE(4),
|
HIDE_UNBREAKABLE,
|
||||||
HIDE_DESTROYS(8),
|
HIDE_DESTROYS,
|
||||||
HIDE_PLACED_ON(16),
|
HIDE_PLACED_ON,
|
||||||
HIDE_POTION_EFFECTS(32);
|
HIDE_POTION_EFFECTS,
|
||||||
|
HIDE_DYE;
|
||||||
|
|
||||||
private final int bitFieldPart;
|
private final int bitFieldPart = 1 << this.ordinal();
|
||||||
|
|
||||||
ItemHideFlag(int bit) {
|
|
||||||
this.bitFieldPart = bit;
|
|
||||||
}
|
|
||||||
|
|
||||||
public int getBitFieldPart() {
|
public int getBitFieldPart() {
|
||||||
return bitFieldPart;
|
return bitFieldPart;
|
||||||
|
Loading…
Reference in New Issue
Block a user