public class ChestMock extends ContainerMock implements org.bukkit.block.Chest
| Modifier | Constructor and Description |
|---|---|
protected |
ChestMock(@NotNull org.bukkit.block.Block block) |
protected |
ChestMock(@NotNull ChestMock state) |
|
ChestMock(@NotNull org.bukkit.Material material) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected InventoryMock |
createInventory() |
org.bukkit.inventory.Inventory |
getBlockInventory() |
org.bukkit.loot.LootTable |
getLootTable() |
long |
getSeed() |
org.bukkit.block.BlockState |
getSnapshot()
This returns a copy of this
BlockStateMock. |
void |
open() |
void |
setLootTable(org.bukkit.loot.LootTable table) |
void |
setSeed(long seed) |
getCustomName, getInventory, getLock, getSnapshotInventory, isLocked, setCustomName, setLockgetPersistentDataContainergetBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getMetadata, getRawData, getType, getWorld, getX, getY, getZ, hasMetadata, isPlaced, mockState, removeMetadata, setBlockData, setData, setMetadata, setRawData, setType, update, update, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBlock, getBlockData, getChunk, getData, getLightLevel, getLocation, getLocation, getRawData, getType, getWorld, getX, getY, getZ, isPlaced, setBlockData, setData, setRawData, setType, update, update, updatepublic ChestMock(@NotNull
@NotNull org.bukkit.Material material)
protected ChestMock(@NotNull
@NotNull org.bukkit.block.Block block)
protected ChestMock(@NotNull
@NotNull ChestMock state)
public void setLootTable(org.bukkit.loot.LootTable table)
setLootTable in interface org.bukkit.loot.Lootablepublic org.bukkit.loot.LootTable getLootTable()
getLootTable in interface org.bukkit.loot.Lootablepublic void setSeed(long seed)
setSeed in interface org.bukkit.loot.Lootablepublic long getSeed()
getSeed in interface org.bukkit.loot.Lootablepublic void open()
open in interface org.bukkit.block.Liddedpublic void close()
close in interface org.bukkit.block.Liddedpublic org.bukkit.inventory.Inventory getBlockInventory()
getBlockInventory in interface org.bukkit.block.Chestprotected InventoryMock createInventory()
createInventory in class ContainerMockpublic org.bukkit.block.BlockState getSnapshot()
BlockStateMockBlockStateMock. Inheritents of this class should override this method!getSnapshot in class ContainerMockBlockStateMock.