Package com.sk89q.jnbt
Class CompoundTagBuilder
java.lang.Object
com.sk89q.jnbt.CompoundTagBuilder
Deprecated.
Helps create compound tags.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.Build an unnamed compound tag with this builder's entries.static CompoundTagBuilder
create()
Deprecated.Create a new builder instance.Deprecated.Put the given key and tag into the compound tag.Deprecated.Put all the entries from the given map into this map.Deprecated.Put the given key and value into the compound tag as aByteTag
.putByteArray
(String key, byte[] value) Deprecated.Put the given key and value into the compound tag as aByteArrayTag
.Deprecated.Put the given key and value into the compound tag as aDoubleTag
.Deprecated.Put the given key and value into the compound tag as aFloatTag
.Deprecated.Put the given key and value into the compound tag as anIntTag
.putIntArray
(String key, int[] value) Deprecated.Put the given key and value into the compound tag as aIntArrayTag
.Deprecated.Put the given key and value into the compound tag as aLongTag
.putLongArray
(String key, long[] value) Deprecated.Put the given key and value into the compound tag as aLongArrayTag
.Deprecated.Put the given key and value into the compound tag as aShortTag
.Deprecated.Put the given key and value into the compound tag as aStringTag
.Deprecated.Remove the given key from the compound tag.
-
Method Details
-
put
Deprecated.Put the given key and tag into the compound tag.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putByteArray
Deprecated.Put the given key and value into the compound tag as aByteArrayTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putByte
Deprecated.Put the given key and value into the compound tag as aByteTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putDouble
Deprecated.Put the given key and value into the compound tag as aDoubleTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putFloat
Deprecated.Put the given key and value into the compound tag as aFloatTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putIntArray
Deprecated.Put the given key and value into the compound tag as aIntArrayTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putInt
Deprecated.Put the given key and value into the compound tag as anIntTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putLongArray
Deprecated.Put the given key and value into the compound tag as aLongArrayTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putLong
Deprecated.Put the given key and value into the compound tag as aLongTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putShort
Deprecated.Put the given key and value into the compound tag as aShortTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
putString
Deprecated.Put the given key and value into the compound tag as aStringTag
.- Parameters:
key
- they keyvalue
- the value- Returns:
- this object
-
remove
Deprecated.Remove the given key from the compound tag. Does nothing if the key doesn't exist.- Parameters:
key
- the key- Returns:
- this object
-
putAll
Deprecated.Put all the entries from the given map into this map.- Parameters:
value
- the map of tags- Returns:
- this object
-
build
Deprecated.Build an unnamed compound tag with this builder's entries.- Returns:
- the new compound tag
-
create
Deprecated.Create a new builder instance.- Returns:
- a new builder
-
LinCompoundTag.Builder
.