Commits

md_5 authored 47480cd07c0
SPIGOT-8032: Improve ItemMeta#hasCustomModelData compatibility
No tags

src/main/java/org/bukkit/inventory/meta/components/CustomModelDataComponent.java

Modified
6 6 import org.jetbrains.annotations.ApiStatus;
7 7 import org.jetbrains.annotations.NotNull;
8 8
9 9 /**
10 10 * Represents a component which adds custom model data.
11 11 */
12 12 @ApiStatus.Experimental
13 13 public interface CustomModelDataComponent extends ConfigurationSerializable {
14 14
15 15 /**
16 - * Gets a list of the custom floats.
16 + * Gets a list of the floats for the range_dispatch model type.
17 17 *
18 18 * @return unmodifiable list
19 19 */
20 20 @NotNull
21 21 List<Float> getFloats();
22 22
23 23 /**
24 - * Sets a list of the custom floats.
24 + * Sets a list of the floats for the range_dispatch model type.
25 25 *
26 26 * @param floats new list
27 27 */
28 28 void setFloats(@NotNull List<Float> floats);
29 29
30 30 /**
31 - * Gets a list of the custom flags.
31 + * Gets a list of the booleans for the condition model type.
32 32 *
33 33 * @return unmodifiable list
34 34 */
35 35 @NotNull
36 36 List<Boolean> getFlags();
37 37
38 38 /**
39 - * Sets a list of the custom flags.
39 + * Sets a list of the booleans for the condition model type.
40 40 *
41 41 * @param flags new list
42 42 */
43 43 void setFlags(@NotNull List<Boolean> flags);
44 44
45 45 /**
46 - * Gets a list of the custom strings.
46 + * Gets a list of strings for the select model type.
47 47 *
48 48 * @return unmodifiable list
49 49 */
50 50 @NotNull
51 51 List<String> getStrings();
52 52
53 53 /**
54 - * Sets a list of the custom strings.
54 + * Sets a list of strings for the select model type.
55 55 *
56 56 * @param strings new list
57 57 */
58 58 void setStrings(@NotNull List<String> strings);
59 59
60 60 /**
61 - * Gets a list of the custom colors.
61 + * Gets a list of colors for the model type's tints.
62 62 *
63 63 * @return unmodifiable list
64 64 */
65 65 @NotNull
66 66 List<Color> getColors();
67 67
68 68 /**
69 - * Sets a list of the custom colors.
69 + * Sets a list of colors for the model type's tints.
70 70 *
71 71 * @param colors new list
72 72 */
73 73 void setColors(@NotNull List<Color> colors);
74 74 }

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut