public class CompoundTagBuilder extends Object
Modifier and Type | Method and Description |
---|---|
CompoundTag |
build()
Build an unnamed 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 |
putBoolean(String key,
boolean value) |
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 |
putPlaceholderDouble(String key,
PlaceholderDouble value)
Put the given key and value into the compound tag as a
DoubleTag . |
CompoundTagBuilder |
putPlaceholderFloat(String key,
PlaceholderFloat value)
Put the given key and value into the compound tag as a
FloatTag . |
CompoundTagBuilder |
putPlaceholderInt(String key,
PlaceholderInt value)
Put the given key and value into the compound tag as an
IntTag . |
CompoundTagBuilder |
putPlaceholderString(String key,
PlaceholderString value)
Put the given key and value into the compound tag as a
StringTag . |
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 . |
CompoundTagBuilder |
remove(String key) |
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 putBoolean(String key, boolean value)
public CompoundTagBuilder putDouble(String key, double value)
DoubleTag
.key
- they keyvalue
- the valuepublic CompoundTagBuilder putPlaceholderDouble(String key, PlaceholderDouble value)
DoubleTag
.key
- they keyvalue
- the valuepublic CompoundTagBuilder putPlaceholderFloat(String key, PlaceholderFloat value)
FloatTag
.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 putPlaceholderInt(String key, PlaceholderInt 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 putPlaceholderString(String key, PlaceholderString value)
StringTag
.key
- they keyvalue
- the valuepublic CompoundTagBuilder putAll(Map<String,? extends Tag> value)
value
- the map of tagspublic CompoundTagBuilder remove(String key)
public CompoundTag build()
public static CompoundTagBuilder create()
Copyright © 2020. All rights reserved.