SPIGOT-6464: Fix ShulkerBox#getColor for undyed shulkers

This commit is contained in:
md_5 2021-05-23 08:30:14 +10:00
parent 146a7e4bd7
commit f563167d33
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11

View file

@ -2,7 +2,7 @@ package org.bukkit.block;
import org.bukkit.DyeColor;
import org.bukkit.loot.Lootable;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* 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
*
* @return the {@link DyeColor} of this ShulkerBox
* @return the {@link DyeColor} of this ShulkerBox, or null if default
*/
@NotNull
@Nullable
public DyeColor getColor();
}