mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-29 04:28:21 +01:00
Param comments for NBTUtils#toNBT
This commit is contained in:
parent
4412bea7b8
commit
f9035bf949
@ -363,10 +363,10 @@ public final class NBTUtils {
|
||||
/**
|
||||
* Converts an object into its {@link NBT} equivalent.
|
||||
*
|
||||
* @param value
|
||||
* @param type
|
||||
* @param supportDataType
|
||||
* @return
|
||||
* @param value the value to convert
|
||||
* @param type the type of the value, used to know which {@link DataType} to use if {@code value} is not a primitive type
|
||||
* @param supportDataType true to allow using a {@link DataType} to encode {@code value} into a byte array if not a primitive type
|
||||
* @return the converted value, null if {@code type} is not a primitive type and {@code supportDataType} is false
|
||||
*/
|
||||
@Nullable
|
||||
public static NBT toNBT(@NotNull Object value, @NotNull Class type, boolean supportDataType) {
|
||||
|
Loading…
Reference in New Issue
Block a user