Class LecternMock

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

public class LecternMock extends ContainerMock implements org.bukkit.block.Lectern
  • Constructor Details

    • LecternMock

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

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

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

    • 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.
    • getPage

      public int getPage()
      Specified by:
      getPage in interface org.bukkit.block.Lectern
    • setPage

      public void setPage(int page)
      Specified by:
      setPage in interface org.bukkit.block.Lectern