Files
Paper/paper-api/src/main/java/org/bukkit/block/Chest.java
Aikar 397d3cac4b LootTable API
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
2016-05-01 15:19:49 -04:00

31 lines
991 B
Java

package org.bukkit.block;
import com.destroystokyo.paper.loottable.LootableBlockInventory; // Paper
import org.bukkit.Nameable; // Paper
import org.bukkit.inventory.Inventory;
import org.bukkit.loot.Lootable;
import org.jetbrains.annotations.NotNull;
/**
* Represents a captured state of a chest.
*/
public interface Chest extends Container, LootableBlockInventory, Lidded { // Paper
/**
* Gets the inventory of the chest block represented by this block state.
* <p>
* If the chest is a double chest, it returns just the portion of the
* inventory linked to the half of the chest corresponding to this block state.
* <p>
* If the block was changed to a different type in the meantime, the
* returned inventory might no longer be valid.
* <p>
* If this block state is not placed this will return the captured
* inventory snapshot instead.
*
* @return the inventory
*/
@NotNull
Inventory getBlockInventory();
}