Class CompoundTag
- All Implemented Interfaces:
com.sk89q.worldedit.util.nbt.BinaryTagLike
TAG_Compound
tag.-
Constructor Summary
ConstructorsConstructorDescriptionCompoundTag(com.sk89q.worldedit.util.nbt.CompoundBinaryTag adventureTag)
Deprecated.CompoundTag(Map<String,Tag> value)
Deprecated.Creates the tag with an empty name. -
Method Summary
Modifier and TypeMethodDescriptioncom.sk89q.worldedit.util.nbt.CompoundBinaryTag
Deprecated.double
Deprecated.Get a double named with the given key, even if it's another type of number.int
Deprecated.Get an int named with the given key, even if it's another type of number.long
Deprecated.Get a long named with the given key, even if it's another type of number.boolean
containsKey(String key)
Deprecated.Returns whether this compound tag contains the given key.Deprecated.Create a compound tag builder.byte
Deprecated.Get a byte named with the given key.byte[]
getByteArray(String key)
Deprecated.Get a byte array named with the given key.double
Deprecated.Get a double named with the given key.float
Deprecated.Get a float named with the given key.int
Deprecated.Get an int named with the given key.int[]
getIntArray(String key)
Deprecated.Get aint[]
named with the given key.Deprecated.Get a list of tags named with the given key.Deprecated.Get a list of tags named with the given key.getListTag(String key)
Deprecated.Get aTagList
named with the given key.long
Deprecated.Get a long named with the given key.long[]
getLongArray(String key)
Deprecated.Get along[]
named with the given key.short
Deprecated.Get a short named with the given key.Deprecated.Get a string named with the given key.getValue()
Deprecated.Gets the value of this tag.Deprecated.Return a new compound tag with the given values.
-
Constructor Details
-
CompoundTag
Deprecated.Creates the tag with an empty name.- Parameters:
value
- the value of the tag
-
CompoundTag
public CompoundTag(com.sk89q.worldedit.util.nbt.CompoundBinaryTag adventureTag)Deprecated.
-
-
Method Details
-
containsKey
Deprecated.Returns whether this compound tag contains the given key.- Parameters:
key
- the given key- Returns:
- true if the tag contains the given key
-
getValue
Deprecated.Description copied from class:Tag
Gets the value of this tag. -
setValue
Deprecated.Return a new compound tag with the given values.- Parameters:
value
- the value- Returns:
- the new compound tag
-
createBuilder
Deprecated.Create a compound tag builder.- Returns:
- the builder
-
getByteArray
Deprecated.Get a byte array named with the given key.If the key does not exist or its value is not a byte array tag, then an empty byte array will be returned.
- Parameters:
key
- the key- Returns:
- a byte array
-
getByte
Deprecated.Get a byte named with the given key.If the key does not exist or its value is not a byte tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a byte
-
getDouble
Deprecated.Get a double named with the given key.If the key does not exist or its value is not a double tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a double
-
asDouble
Deprecated.Get a double named with the given key, even if it's another type of number.If the key does not exist or its value is not a number, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a double
-
getFloat
Deprecated.Get a float named with the given key.If the key does not exist or its value is not a float tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a float
-
getIntArray
Deprecated.Get aint[]
named with the given key.If the key does not exist or its value is not an int array tag, then an empty array will be returned.
- Parameters:
key
- the key- Returns:
- an int array
-
getInt
Deprecated.Get an int named with the given key.If the key does not exist or its value is not an int tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- an int
-
asInt
Deprecated.Get an int named with the given key, even if it's another type of number.If the key does not exist or its value is not a number, then
0
will be returned.- Parameters:
key
- the key- Returns:
- an int
-
getList
Deprecated.Get a list of tags named with the given key.If the key does not exist or its value is not a list tag, then an empty list will be returned.
- Parameters:
key
- the key- Returns:
- a list of tags
-
getListTag
Deprecated.Get aTagList
named with the given key.If the key does not exist or its value is not a list tag, then an empty tag list will be returned.
- Parameters:
key
- the key- Returns:
- a tag list instance
-
getList
Deprecated.Get a list of tags named with the given key.If the key does not exist or its value is not a list tag, then an empty list will be returned. If the given key references a list but the list of of a different type, then an empty list will also be returned.
- Type Parameters:
T
- the type of list- Parameters:
key
- the keylistType
- the class of the contained type- Returns:
- a list of tags
-
getLongArray
Deprecated.Get along[]
named with the given key.If the key does not exist or its value is not an long array tag, then an empty array will be returned.
- Parameters:
key
- the key- Returns:
- an int array
-
getLong
Deprecated.Get a long named with the given key.If the key does not exist or its value is not a long tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a long
-
asLong
Deprecated.Get a long named with the given key, even if it's another type of number.If the key does not exist or its value is not a number, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a long
-
getShort
Deprecated.Get a short named with the given key.If the key does not exist or its value is not a short tag, then
0
will be returned.- Parameters:
key
- the key- Returns:
- a short
-
getString
Deprecated.Get a string named with the given key.If the key does not exist or its value is not a string tag, then
""
will be returned.- Parameters:
key
- the key- Returns:
- a string
-
asBinaryTag
public com.sk89q.worldedit.util.nbt.CompoundBinaryTag asBinaryTag()Deprecated.
-
CompoundBinaryTag
.