Class SculkShriekerMock

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

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

    • SculkShriekerMock

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

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

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

      public int getWarningLevel()
      Specified by:
      getWarningLevel in interface org.bukkit.block.SculkShrieker
    • setWarningLevel

      public void setWarningLevel(int level)
      Specified by:
      setWarningLevel in interface org.bukkit.block.SculkShrieker
    • tryShriek

      public void tryShriek(@Nullable @Nullable org.bukkit.entity.Player player)
      Specified by:
      tryShriek in interface org.bukkit.block.SculkShrieker