Class NBTCompound
java.lang.Object
com.github.retrooper.packetevents.protocol.nbt.NBT
com.github.retrooper.packetevents.protocol.nbt.NBTCompound
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
boolean
getBoolean
(String string) @Nullable NBTList
<NBTCompound> @Nullable NBTCompound
@Nullable NBTNumber
getNumberTagOrNull
(String key) @Nullable NBTString
getStringTagOrNull
(String key) getStringTagValueOrDefault
(String key, String defaultValue) @Nullable String
getTagListOfTypeOrNull
(String key, Class<T> type) getTagListOfTypeOrThrow
(String key, Class<T> type) <T extends NBT>
TgetTagOfTypeOrNull
(String key, Class<T> type) <T extends NBT>
TgetTagOfTypeOrThrow
(String key, Class<T> type) @Nullable NBT
getTagOrNull
(String key) getTagOrThrow
(String key) getTags()
getType()
int
hashCode()
boolean
isEmpty()
removeTagAndReturnIfListType
(String key, Class<T> type) <T extends NBT>
TremoveTagAndReturnIfType
(String key, Class<T> type) void
int
size()
toString()
-
Field Details
-
tags
-
-
Constructor Details
-
NBTCompound
public NBTCompound()
-
-
Method Details
-
getType
-
isEmpty
public boolean isEmpty() -
getTagNames
-
getTags
-
size
public int size() -
getTagOrThrow
-
getTagOrNull
-
getTagOfTypeOrThrow
-
getTagOfTypeOrNull
-
getTagListOfTypeOrThrow
-
getTagListOfTypeOrNull
-
getCompoundTagOrThrow
-
getCompoundTagOrNull
-
getNumberTagOrThrow
-
getNumberTagOrNull
-
getStringTagOrThrow
-
getStringTagOrNull
-
getCompoundListTagOrThrow
-
getCompoundListTagOrNull
-
getNumberTagListTagOrThrow
-
getNumberListTagOrNull
-
getStringListTagOrThrow
-
getStringListTagOrNull
-
getStringTagValueOrThrow
-
getStringTagValueOrNull
-
getStringTagValueOrDefault
-
removeTag
-
removeTagAndReturnIfType
-
removeTagAndReturnIfListType
-
setTag
-
copy
-
getBoolean
-
equals
-
hashCode
public int hashCode() -
toString
-