SPIGOT-7554, #954: Add DecoratedPotInventory

By: BlackHole <black-hole@live.com>
This commit is contained in:
Bukkit/Spigot
2023-12-28 08:03:18 +11:00
parent 6c75204dda
commit b48b712546
2 changed files with 47 additions and 1 deletions

View File

@@ -4,13 +4,15 @@ import java.util.List;
import java.util.Map;
import org.bukkit.Material;
import org.bukkit.Tag;
import org.bukkit.inventory.BlockInventoryHolder;
import org.bukkit.inventory.DecoratedPotInventory;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Represents a captured state of a decorated pot.
*/
public interface DecoratedPot extends TileState {
public interface DecoratedPot extends TileState, BlockInventoryHolder {
/**
* Set the sherd on the provided side.
@@ -53,6 +55,21 @@ public interface DecoratedPot extends TileState {
@NotNull
public List<Material> getShards();
/**
* @return inventory
* @see Container#getInventory()
*/
@NotNull
@Override
public DecoratedPotInventory getInventory();
/**
* @return snapshot inventory
* @see Container#getSnapshotInventory()
*/
@NotNull
public DecoratedPotInventory getSnapshotInventory();
/**
* A side on a decorated pot. Sides are relative to the facing state of a
* {@link org.bukkit.block.data.type.DecoratedPot}.