mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-31 21:48:08 +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.
|
* Converts an object into its {@link NBT} equivalent.
|
||||||
*
|
*
|
||||||
* @param value
|
* @param value the value to convert
|
||||||
* @param type
|
* @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
|
* @param supportDataType true to allow using a {@link DataType} to encode {@code value} into a byte array if not a primitive type
|
||||||
* @return
|
* @return the converted value, null if {@code type} is not a primitive type and {@code supportDataType} is false
|
||||||
*/
|
*/
|
||||||
@Nullable
|
@Nullable
|
||||||
public static NBT toNBT(@NotNull Object value, @NotNull Class type, boolean supportDataType) {
|
public static NBT toNBT(@NotNull Object value, @NotNull Class type, boolean supportDataType) {
|
||||||
|
Loading…
Reference in New Issue
Block a user