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
Mock implementation of an EnderChest.
See Also:
  • Constructor Details

    • EnderChestMock

      public EnderChestMock(@NotNull @NotNull org.bukkit.Material material)
      Constructs a new EnderChestMock for the provided Material. Only supports Material.ENDER_CHEST
      Parameters:
      material - The material this state is for.
    • EnderChestMock

      protected EnderChestMock(@NotNull @NotNull org.bukkit.block.Block block)
      Constructs a new EnderChestMock for the provided Block. Only supports Material.ENDER_CHEST
      Parameters:
      block - The block this state is for.
    • EnderChestMock

      protected EnderChestMock(@NotNull @NotNull EnderChestMock state)
      Constructs a new EnderChestMock by cloning the data from an existing one.
      Parameters:
      state - The state to clone.
  • Method Details

    • 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 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
    • isBlocked

      public boolean isBlocked()
      Specified by:
      isBlocked in interface org.bukkit.block.EnderChest