Package beer.devs.fastnbt.nms.nbt
Class NCompound
java.lang.Object
beer.devs.fastnbt.nms.nbt.NCompound
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddCompound(String key) booleangetBoolean(String key) bytebyte[]getByteArray(String key) @Nullable NCompoundgetCompound(String key) doublefloatintint[]getIntArray(String key) getKeys()@Nullable NListlonglong[]getLongArray(String key) getOrAddCompound(String key) getOrAddList(String key, NBTType type) short@Nullable UUIDbooleanbooleanbooleanisEmpty()static ObjectvoidputInternalTag(String key, Object nmsTag) setBoolean(String key, boolean param) setByteArray(String key, byte[] param) setCompound(String key, NCompound compound) setIntArray(String key, int[] param) setIntegerList(String key, List<Integer> param) voidsetLongArray(String key, long[] param) setLongList(String key, List<Long> param) @Nullable org.bukkit.inventory.ItemStackAttempts to convert this Compound to a Bukkit ItemStack.toString()
-
Field Details
-
handler
-
handle
-
-
Constructor Details
-
NCompound
public NCompound() -
NCompound
-
-
Method Details
-
newNmsInstance
-
getInternal
-
setByte
-
setShort
-
setInt
-
setLong
-
setUUID
-
setFloat
-
setDouble
-
setString
-
setByteArray
-
setIntArray
-
setIntegerList
-
setLongArray
-
setLongList
-
setBoolean
-
hasKey
-
hasUUID
-
getUUID
-
getByte
-
getShort
-
getInt
-
getLong
-
getFloat
-
getDouble
-
getString
-
getByteArray
-
getIntArray
-
getLongArray
-
getCompound
-
getOrAddCompound
-
addCompound
-
setCompound
-
getList
-
getOrAddList
-
addList
-
setList
-
getBoolean
-
getKeys
-
isEmpty
public boolean isEmpty() -
remove
-
merge
-
toString
-
putInternalTag
-
toBukkitItem
@Nullable public @Nullable org.bukkit.inventory.ItemStack toBukkitItem()Attempts to convert this Compound to a Bukkit ItemStack.- Returns:
- A Bukkit ItemsStack. Returns null if the Compound is not an item.
-