Class EnderChestMock

All Implemented Interfaces:
org.bukkit.block.BlockState, org.bukkit.block.EnderChest, org.bukkit.block.Lidded, org.bukkit.block.TileState, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class EnderChestMock extends TileStateMock implements org.bukkit.block.EnderChest
A simple mock of the EnderChest BlockState, it is a pretty generic implementation of TileStateMock.
  • Constructor Details

    • EnderChestMock

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

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

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

    • getSnapshot

      public 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 TileStateMock
      Returns:
      A snapshot of this BlockStateMock.
    • 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