public class CompoundTagBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
CompoundTag |
build()
Build an unnamed compound tag with this builder's entries.
|
CompoundTag |
build(String name)
Build a new compound tag with this builder's entries.
|
static CompoundTagBuilder |
create()
Create a new builder instance.
|
CompoundTagBuilder |
put(String key,
Tag value)
Put the given key and tag into the compound tag.
|
CompoundTagBuilder |
putAll(Map<String,? extends Tag> value)
Put all the entries from the given map into this map.
|
CompoundTagBuilder |
putByte(String key,
byte value)
Put the given key and value into the compound tag as a
ByteTag. |
CompoundTagBuilder |
putByteArray(String key,
byte[] value)
Put the given key and value into the compound tag as a
ByteArrayTag. |
CompoundTagBuilder |
putDouble(String key,
double value)
Put the given key and value into the compound tag as a
DoubleTag. |
CompoundTagBuilder |
putFloat(String key,
float value)
Put the given key and value into the compound tag as a
FloatTag. |
CompoundTagBuilder |
putInt(String key,
int value)
Put the given key and value into the compound tag as an
IntTag. |
CompoundTagBuilder |
putIntArray(String key,
int[] value)
Put the given key and value into the compound tag as a
IntArrayTag. |
CompoundTagBuilder |
putLong(String key,
long value)
Put the given key and value into the compound tag as a
LongTag. |
CompoundTagBuilder |
putShort(String key,
short value)
Put the given key and value into the compound tag as a
ShortTag. |
CompoundTagBuilder |
putString(String key,
String value)
Put the given key and value into the compound tag as a
StringTag. |
public CompoundTagBuilder put(String key, Tag value)
key - they keyvalue - the valuepublic CompoundTagBuilder putByteArray(String key, byte[] value)
ByteArrayTag.key - they keyvalue - the valuepublic CompoundTagBuilder putByte(String key, byte value)
ByteTag.key - they keyvalue - the valuepublic CompoundTagBuilder putDouble(String key, double value)
DoubleTag.key - they keyvalue - the valuepublic CompoundTagBuilder putFloat(String key, float value)
FloatTag.key - they keyvalue - the valuepublic CompoundTagBuilder putIntArray(String key, int[] value)
IntArrayTag.key - they keyvalue - the valuepublic CompoundTagBuilder putInt(String key, int value)
IntTag.key - they keyvalue - the valuepublic CompoundTagBuilder putLong(String key, long value)
LongTag.key - they keyvalue - the valuepublic CompoundTagBuilder putShort(String key, short value)
ShortTag.key - they keyvalue - the valuepublic CompoundTagBuilder putString(String key, String value)
StringTag.key - they keyvalue - the valuepublic CompoundTagBuilder putAll(Map<String,? extends Tag> value)
value - the map of tagspublic CompoundTag build()
public CompoundTag build(String name)
name - the name of the tagpublic static CompoundTagBuilder create()
Copyright © 2010-2014. All Rights Reserved.