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

    • SculkSensorMock

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

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

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