public abstract class PrimitiveTagAPI<T> extends BaseTagAPI<T>
wrappedBOOLEAN_VALUES, FABRIC, FORGE, FORGE_OR_NEOFORGE, GAME_VERSION, JAVA_17, JAVA_21, JAVA_8, JAVA_MODULES, JAVA_VERSION, JAVA_VERSION_ASM, LEGACY, MOD_LOADER, NAMED_ENV, NEOFORGE, SRG_ENV, V12, V16, V16_OR_EARLIER, V16_OR_LATER, V18, V18_OR_EARLIER, V18_OR_LATER, V19, V19_2_OR_EARLIER, V19_4_OR_LATER, V19_OR_EARLIER, V19_OR_LATER, V20, V20_4_OR_EARLIER, V20_6_OR_LATER, V20_OR_EARLIER, V20_OR_LATER, V21, V21_OR_LATER| Modifier | Constructor and Description |
|---|---|
protected |
PrimitiveTagAPI(java.lang.Object tag) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
asBoolean() |
abstract byte |
asByte() |
CompoundTagAPI<?> |
asCompoundTag() |
abstract double |
asDouble() |
abstract float |
asFloat() |
abstract int |
asInt() |
ListTagAPI<?> |
asListTag() |
abstract long |
asLong() |
PrimitiveTagAPI<?> |
asPrimitiveTag() |
abstract short |
asShort() |
StringTagAPI<?> |
asStringTag() |
boolean |
isCompound() |
boolean |
isList() |
boolean |
isPrimitive() |
boolean |
isString() |
writeequals, getWrapped, getWrappedClass, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIfNotNull, getIfNotNullOrDefault, getIfNotNullOrDefault, isNull, isNullGetter, notNull, notNullGetter, supplyIfNull, unwrap, wrapIfNotNull, wrapIfNotNullOrDefault, wrapIfNotNullOrDefaultpublic boolean asBoolean()
public abstract byte asByte()
public CompoundTagAPI<?> asCompoundTag()
asCompoundTag in class BaseTagAPI<T>public abstract double asDouble()
public abstract float asFloat()
public abstract int asInt()
public ListTagAPI<?> asListTag()
asListTag in class BaseTagAPI<T>public abstract long asLong()
public PrimitiveTagAPI<?> asPrimitiveTag()
asPrimitiveTag in class BaseTagAPI<T>public abstract short asShort()
public StringTagAPI<?> asStringTag()
asStringTag in class BaseTagAPI<T>public boolean isCompound()
isCompound in class BaseTagAPI<T>public boolean isList()
isList in class BaseTagAPI<T>public boolean isPrimitive()
isPrimitive in class BaseTagAPI<T>public boolean isString()
isString in class BaseTagAPI<T>