Class DaylightDetectorMock

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

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

    • DaylightDetectorMock

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

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

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