Class BellMock

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

public class BellMock extends TileStateMock implements org.bukkit.block.Bell
Mock implementation of a Bell.
See Also:
  • Constructor Details

    • BellMock

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

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

      protected BellMock(@NotNull @NotNull BellMock state)
      Constructs a new BellMock 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.
    • ring

      public boolean ring(@Nullable @Nullable org.bukkit.entity.Entity entity, @Nullable @Nullable org.bukkit.block.BlockFace direction)
      Specified by:
      ring in interface org.bukkit.block.Bell
    • ring

      public boolean ring(@Nullable @Nullable org.bukkit.entity.Entity entity)
      Specified by:
      ring in interface org.bukkit.block.Bell
    • ring

      public boolean ring(@Nullable @Nullable org.bukkit.block.BlockFace direction)
      Specified by:
      ring in interface org.bukkit.block.Bell
    • ring

      public boolean ring()
      Specified by:
      ring in interface org.bukkit.block.Bell
    • isShaking

      public boolean isShaking()
      Specified by:
      isShaking in interface org.bukkit.block.Bell
    • getShakingTicks

      public int getShakingTicks()
      Specified by:
      getShakingTicks in interface org.bukkit.block.Bell
    • isResonating

      public boolean isResonating()
      Specified by:
      isResonating in interface org.bukkit.block.Bell
    • getResonatingTicks

      public int getResonatingTicks()
      Specified by:
      getResonatingTicks in interface org.bukkit.block.Bell