Add ItemHideFlag#HIDE_DYE

This commit is contained in:
TheMode 2021-08-20 06:49:13 +02:00
parent 2ef8e957a0
commit 8075cab011

View File

@ -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;