Package net.fabricmc.fabric.api.util
Class NbtType
java.lang.Object
net.fabricmc.fabric.api.util.NbtType
NBT type ID constants. Useful for filtering by value type in a few cases.
For the current list of types, check with Tag#TYPES
.
- See Also:
CompoundTag.contains(String, int)
,TagReaders.of(int)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
static int
Any numeric value: byte, short, int, long, float, double.static int
static int
-
Method Summary
-
Field Details
-
END
public static final int END- See Also:
- Constant Field Values
-
BYTE
public static final int BYTE- See Also:
- Constant Field Values
-
SHORT
public static final int SHORT- See Also:
- Constant Field Values
-
INT
public static final int INT- See Also:
- Constant Field Values
-
LONG
public static final int LONG- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE- See Also:
- Constant Field Values
-
BYTE_ARRAY
public static final int BYTE_ARRAY- See Also:
- Constant Field Values
-
STRING
public static final int STRING- See Also:
- Constant Field Values
-
LIST
public static final int LIST- See Also:
- Constant Field Values
-
COMPOUND
public static final int COMPOUND- See Also:
- Constant Field Values
-
INT_ARRAY
public static final int INT_ARRAY- See Also:
- Constant Field Values
-
LONG_ARRAY
public static final int LONG_ARRAY- See Also:
- Constant Field Values
-
NUMBER
public static final int NUMBERAny numeric value: byte, short, int, long, float, double.- See Also:
CompoundTag.contains(String, int)
, Constant Field Values
-