Package net.fabricmc.fabric.api.util
Class NbtType
java.lang.Object
net.fabricmc.fabric.api.util.NbtType
public final class NbtType extends Object
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
Fields Modifier and Type Field Description static int
BYTE
static int
BYTE_ARRAY
static int
COMPOUND
static int
DOUBLE
static int
END
static int
FLOAT
static int
INT
static int
INT_ARRAY
static int
LIST
static int
LONG
static int
LONG_ARRAY
static int
NUMBER
Any numeric value: byte, short, int, long, float, double.static int
SHORT
static int
STRING
-
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
-