public class BarrelMock extends ContainerMock implements org.bukkit.block.Barrel
ContainerMock represents a BarrelChestMock| Modifier | Constructor and Description |
|---|---|
protected |
BarrelMock(@NotNull BarrelMock state) |
protected |
BarrelMock(@NotNull org.bukkit.block.Block block) |
|
BarrelMock(@NotNull org.bukkit.Material material) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected InventoryMock |
createInventory() |
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 BarrelMock(@NotNull
@NotNull org.bukkit.Material material)
protected BarrelMock(@NotNull
@NotNull org.bukkit.block.Block block)
protected BarrelMock(@NotNull
@NotNull BarrelMock 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.Liddedprotected InventoryMock createInventory()
createInventory in class ContainerMockpublic org.bukkit.block.BlockState getSnapshot()
BlockStateMockBlockStateMock. Inheritents of this class should override this method!getSnapshot in class ContainerMockBlockStateMock.