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) boolean
getBoolean
(String key) byte
byte[]
getByteArray
(String key) @Nullable NCompound
getCompound
(String key) double
float
int
int[]
getIntArray
(String key) getKeys()
@Nullable NList
long
long[]
getLongArray
(String key) getOrAddCompound
(String key) getOrAddList
(String key, NBTType type) short
@Nullable UUID
boolean
boolean
boolean
isEmpty()
static Object
void
putInternalTag
(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) void
setLongArray
(String key, long[] param) setLongList
(String key, List<Long> param) @Nullable org.bukkit.inventory.ItemStack
Attempts 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.
-