类 CompoundTag
java.lang.Object
net.minecraft.nbt.CompoundTag
- 所有已实现的接口:
Tag
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec<CompoundTag>
private static final int
private static final int
static final TagType<CompoundTag>
从接口继承的字段 net.minecraft.nbt.Tag
ARRAY_HEADER, MAX_DEPTH, OBJECT_HEADER, OBJECT_REFERENCE, STRING_SIZE, TAG_ANY_NUMERIC, TAG_BYTE, TAG_BYTE_ARRAY, TAG_COMPOUND, TAG_DOUBLE, TAG_END, TAG_FLOAT, TAG_INT, TAG_INT_ARRAY, TAG_LIST, TAG_LONG, TAG_LONG_ARRAY, TAG_SHORT, TAG_STRING
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明accept
(StreamTagVisitor pVisitor) void
accept
(TagVisitor pVisitor) boolean
boolean
copy()
private CrashReport
createReport
(String pTagName, TagType<?> pType, ClassCastException pException) entries()
boolean
boolean
getBoolean
(String pKey) byte
byte[]
getByteArray
(String pKey) getCompound
(String pKey) double
float
byte
getId()
int
int[]
getIntArray
(String pKey) long
long[]
getLongArray
(String pKey) short
byte
getTagType
(String pKey) getType()
int
hashCode()
boolean
boolean
isEmpty()
merge
(CompoundTag pOther) void
putBoolean
(String pKey, boolean pValue) void
void
putByteArray
(String pKey, byte[] pValue) void
putByteArray
(String pKey, List<Byte> pValue) void
void
void
void
putIntArray
(String pKey, int[] pValue) void
putIntArray
(String pKey, List<Integer> pValue) void
void
putLongArray
(String pKey, long[] pValue) void
putLongArray
(String pKey, List<Long> pValue) void
void
void
(专用程序包) static Tag
readNamedTagData
(TagType<?> pType, String pName, DataInput pInput, int pDepth, NbtAccounter pAccounter) (专用程序包) static String
readNamedTagName
(DataInput pInput, NbtAccounter pAccounter) (专用程序包) static byte
readNamedTagType
(DataInput pInput, NbtAccounter pAccounter) void
int
size()
int
toString()
void
write
(DataOutput pOutput) private static void
writeNamedTag
(String pName, Tag pTag, DataOutput pOutput) 从接口继承的方法 net.minecraft.nbt.Tag
acceptAsRoot, getAsString
-
字段详细资料
-
构造器详细资料
-
CompoundTag
-
CompoundTag
public CompoundTag()
-
-
方法详细资料
-
write
- 指定者:
write
在接口中Tag
- 抛出:
IOException
-
sizeInBytes
public int sizeInBytes()- 指定者:
sizeInBytes
在接口中Tag
-
getAllKeys
-
getId
public byte getId() -
getType
-
size
public int size() -
put
-
putByte
-
putShort
-
putInt
-
putLong
-
putUUID
-
getUUID
-
hasUUID
-
putFloat
-
putDouble
-
putString
-
putByteArray
-
putByteArray
-
putIntArray
-
putIntArray
-
putLongArray
-
putLongArray
-
putBoolean
-
get
-
getTagType
-
contains
-
contains
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getString
-
getByteArray
-
getIntArray
-
getLongArray
-
getCompound
-
getList
-
getBoolean
-
remove
-
toString
-
isEmpty
public boolean isEmpty() -
createReport
-
copy
-
equals
-
hashCode
public int hashCode() -
writeNamedTag
- 抛出:
IOException
-
readNamedTagType
- 抛出:
IOException
-
readNamedTagName
- 抛出:
IOException
-
readNamedTagData
static Tag readNamedTagData(TagType<?> pType, String pName, DataInput pInput, int pDepth, NbtAccounter pAccounter) -
merge
-
accept
-
entries
-
accept
-