Commits

md_5 authored f563167d33e
SPIGOT-6464: Fix ShulkerBox#getColor for undyed shulkers
No tags

src/main/java/org/bukkit/block/ShulkerBox.java

Modified
1 1 package org.bukkit.block;
2 2
3 3 import org.bukkit.DyeColor;
4 4 import org.bukkit.loot.Lootable;
5 -import org.jetbrains.annotations.NotNull;
5 +import org.jetbrains.annotations.Nullable;
6 6
7 7 /**
8 8 * Represents a captured state of a ShulkerBox.
9 9 */
10 10 public interface ShulkerBox extends Container, Lootable, Lidded {
11 11
12 12 /**
13 13 * Get the {@link DyeColor} corresponding to this ShulkerBox
14 14 *
15 - * @return the {@link DyeColor} of this ShulkerBox
15 + * @return the {@link DyeColor} of this ShulkerBox, or null if default
16 16 */
17 - @NotNull
17 + @Nullable
18 18 public DyeColor getColor();
19 19 }

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

Add shortcut