SPIGOT-6464: Fix ShulkerBox#getColor for undyed shulkers

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2021-05-23 08:30:14 +10:00
parent 66af0a3e3c
commit b21ce6d13a

View File

@ -2,7 +2,7 @@ package org.bukkit.block;
import org.bukkit.DyeColor; import org.bukkit.DyeColor;
import org.bukkit.loot.Lootable; import org.bukkit.loot.Lootable;
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
/** /**
* Represents a captured state of a ShulkerBox. * Represents a captured state of a ShulkerBox.
@ -12,8 +12,8 @@ public interface ShulkerBox extends Container, Lootable, Lidded {
/** /**
* Get the {@link DyeColor} corresponding to this ShulkerBox * Get the {@link DyeColor} corresponding to this ShulkerBox
* *
* @return the {@link DyeColor} of this ShulkerBox * @return the {@link DyeColor} of this ShulkerBox, or null if default
*/ */
@NotNull @Nullable
public DyeColor getColor(); public DyeColor getColor();
} }