- Type Parameters:
R- the return type
- All Known Subinterfaces:
CompoundBinaryTag,CompoundBinaryTag.Builder
Common methods between
CompoundBinaryTag and CompoundBinaryTag.Builder.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionInserts a tag.Inserts some tags.put(CompoundBinaryTag tag) Inserts the tags intag, overwriting any that are inthis.default RputBoolean(String key, boolean value) Inserts a boolean.default RInserts a byte.default RputByteArray(String key, byte[] value) Inserts an array of bytes.default RInserts a double.default RInserts a float.default RInserts an int.default RputIntArray(String key, int[] value) Inserts an array of ints.default RInserts a long.default RputLongArray(String key, long[] value) Inserts an array of longs.default RInserts a short.default RInserts a string.default RRemoves a tag.Removes a tag.
-
Method Details
-
put
Inserts a tag.- Parameters:
key- the keytag- the tag- Returns:
- a compound tag
- Since:
- 4.0.0
-
put
Inserts the tags intag, overwriting any that are inthis.- Parameters:
tag- the tag- Returns:
- a compound tag
- Since:
- 4.6.0
-
put
Inserts some tags.- Parameters:
tags- the tags- Returns:
- a compound tag
- Since:
- 4.4.0
-
remove
Removes a tag.- Parameters:
key- the key- Returns:
- a compound tag
- Since:
- 4.4.0
-
remove
Removes a tag.- Parameters:
key- the keyremoved- a consumer that accepts the removed tag- Returns:
- a compound tag
- Since:
- 4.4.0
-
putBoolean
Inserts a boolean.Booleans are stored as a
ByteBinaryTagwith a value of0forfalseand1fortrue.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putByte
Inserts a byte.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putShort
Inserts a short.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putInt
Inserts an int.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putLong
Inserts a long.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putFloat
Inserts a float.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putDouble
Inserts a double.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putByteArray
Inserts an array of bytes.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putString
Inserts a string.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putIntArray
Inserts an array of ints.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-
putLongArray
Inserts an array of longs.- Parameters:
key- the keyvalue- the value- Returns:
- a compound tag
- Since:
- 4.0.0
-