Interface CompoundTagSetter<R>
- 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
-
put
Inserts the tags intag, overwriting any that are inthis.- Parameters:
tag- the tag- Returns:
- a compound tag
- Since:
- 4.6.0
-
put
-
remove
-
remove
-
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
-
putShort
-
putInt
-
putLong
-
putFloat
-
putDouble
-
putByteArray
-
putString
-
putIntArray
-
putLongArray
-