public class ItemFlags extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DISPLAYNAME_CONTAINS |
static int |
DISPLAYNAME_EQUALS |
static int |
ENCHANTMENT_EQUALS |
static int |
ITEMLORE_EQUALS |
static int |
NBT_FIVE |
static int |
NBT_FOUR |
static int |
NBT_ONE |
static int |
NBT_THREE |
static int |
NBT_TWO |
static int |
NBT_ZERO |
static int |
NO_DAMAGE |
static int |
NOT_USED |
static int |
REPAIRCOST_EQUALS |
static int |
REPAIRCOST_LESS |
static int |
REPAIRCOST_LESSEQUALS |
static int |
SIGNDATE_EQUALS |
static int |
SIGNUSER_CONTAINS |
static int |
SIGNUSER_EQUALS |
static int |
SUBTYPE_EQUALS |
Constructor and Description |
---|
ItemFlags() |
Modifier and Type | Method and Description |
---|---|
static boolean |
hasFlag(int input,
int flag)
Prüft ob eine Flag gesetzt ist.
|
static int |
setFlag(int input,
int flag)
Hilfsfunktion zur Setzung einer Flag.
|
static int |
unsetFlag(int input,
int flag)
Hilfsfunktion zum Entfernen einer Flag-
|
public static final int DISPLAYNAME_EQUALS
public static final int DISPLAYNAME_CONTAINS
public static final int NOT_USED
public static final int NO_DAMAGE
public static final int REPAIRCOST_EQUALS
public static final int REPAIRCOST_LESS
public static final int REPAIRCOST_LESSEQUALS
public static final int SIGNUSER_CONTAINS
public static final int SIGNUSER_EQUALS
public static final int SIGNDATE_EQUALS
public static final int ITEMLORE_EQUALS
public static final int ENCHANTMENT_EQUALS
public static final int NBT_ZERO
public static final int NBT_ONE
public static final int NBT_TWO
public static final int NBT_THREE
public static final int NBT_FOUR
public static final int NBT_FIVE
public static final int SUBTYPE_EQUALS
public static int setFlag(int input, int flag)
input
- der aktuelle Flags Wertflag
- die Flag die gesetzt werden soll, bspw. ItemFlags.ITEMLORE_EQUALSpublic static int unsetFlag(int input, int flag)
input
- der aktuelle Flags Wertflag
- die Flag die entfernt werden soll, bspw. ItemFlags.ITEMLORE_EQUALSpublic static boolean hasFlag(int input, int flag)
input
- der aktuelle Flags Wertflag
- die Flag die geprüft werden soll, bspw. ItemFlags.ITEMLORE_EQUALSCopyright © 2023. All rights reserved.