public class ShulkerBoxMock extends ContainerMock implements org.bukkit.block.ShulkerBox
ContainerMock represents a ShulkerBox.| Modifier | Constructor and Description |
|---|---|
protected |
ShulkerBoxMock(@NotNull org.bukkit.block.Block block) |
|
ShulkerBoxMock(@NotNull org.bukkit.Material material) |
protected |
ShulkerBoxMock(@NotNull ShulkerBoxMock state) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected InventoryMock |
createInventory() |
@NotNull org.bukkit.DyeColor |
getColor() |
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 ShulkerBoxMock(@NotNull
@NotNull org.bukkit.Material material)
protected ShulkerBoxMock(@NotNull
@NotNull org.bukkit.block.Block block)
protected ShulkerBoxMock(@NotNull
@NotNull ShulkerBoxMock 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.@NotNull public @NotNull org.bukkit.DyeColor getColor()
getColor in interface org.bukkit.block.ShulkerBox