Class SculkSensorMock

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

public class SculkSensorMock extends TileStateMock implements org.bukkit.block.SculkSensor
  • Constructor Details

    • SculkSensorMock

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

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

      protected SculkSensorMock(@NotNull @NotNull SculkSensorMock state)
  • 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.
    • getLastVibrationFrequency

      public int getLastVibrationFrequency()
      Specified by:
      getLastVibrationFrequency in interface org.bukkit.block.SculkSensor
    • setLastVibrationFrequency

      public void setLastVibrationFrequency(int lastVibrationFrequency)
      Specified by:
      setLastVibrationFrequency in interface org.bukkit.block.SculkSensor
    • getListenerRange

      public int getListenerRange()
      Specified by:
      getListenerRange in interface org.bukkit.block.SculkSensor
    • setListenerRange

      public void setListenerRange(int range)
      Specified by:
      setListenerRange in interface org.bukkit.block.SculkSensor