Class BarrelMock

All Implemented Interfaces:
org.bukkit.block.Barrel, org.bukkit.block.BlockState, org.bukkit.block.Container, org.bukkit.block.Lidded, org.bukkit.block.Lockable, org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder

public class BarrelMock extends ContainerMock implements org.bukkit.block.Barrel
This ContainerMock represents a Barrel
See Also:
  • Constructor Details

    • BarrelMock

      public BarrelMock(@NotNull @NotNull org.bukkit.Material material)
    • BarrelMock

      protected BarrelMock(@NotNull @NotNull org.bukkit.block.Block block)
    • BarrelMock

      protected BarrelMock(@NotNull @NotNull BarrelMock state)
  • Method Details

    • setLootTable

      public void setLootTable(org.bukkit.loot.LootTable table)
      Specified by:
      setLootTable in interface org.bukkit.loot.Lootable
    • getLootTable

      public org.bukkit.loot.LootTable getLootTable()
      Specified by:
      getLootTable in interface org.bukkit.loot.Lootable
    • setSeed

      public void setSeed(long seed)
      Specified by:
      setSeed in interface org.bukkit.loot.Lootable
    • getSeed

      public long getSeed()
      Specified by:
      getSeed in interface org.bukkit.loot.Lootable
    • open

      public void open()
      Specified by:
      open in interface org.bukkit.block.Lidded
    • close

      public void close()
      Specified by:
      close in interface org.bukkit.block.Lidded
    • isOpen

      public boolean isOpen()
      Specified by:
      isOpen in interface org.bukkit.block.Lidded
    • createInventory

      protected InventoryMock createInventory()
      Specified by:
      createInventory in class ContainerMock
    • getSnapshot

      @NotNull public @NotNull org.bukkit.block.BlockState getSnapshot()
      Description copied from class: BlockStateMock
      This returns a copy of this BlockStateMock. Inheritents of this class should override this method!
      Specified by:
      getSnapshot in class ContainerMock
      Returns:
      A snapshot of this BlockStateMock.