Provides API to control what Loot Table an object uses. Also provides an Event to control if a lootable inventory should auto replenish for a player. Provides methods to determine players looted state for an object
21 lines
554 B
Java
21 lines
554 B
Java
package org.bukkit.block;
|
|
|
|
import com.destroystokyo.paper.loottable.LootableBlockInventory;
|
|
import org.bukkit.DyeColor;
|
|
import org.bukkit.loot.Lootable;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/**
|
|
* Represents a captured state of a ShulkerBox.
|
|
*/
|
|
public interface ShulkerBox extends Container, LootableBlockInventory, Lidded { // Paper
|
|
|
|
/**
|
|
* Get the {@link DyeColor} corresponding to this ShulkerBox
|
|
*
|
|
* @return the {@link DyeColor} of this ShulkerBox, or null if default
|
|
*/
|
|
@Nullable
|
|
public DyeColor getColor();
|
|
}
|