Class BedMock

All Implemented Interfaces:
org.bukkit.block.Bed, org.bukkit.block.BlockState, org.bukkit.block.TileState, org.bukkit.material.Colorable, org.bukkit.metadata.Metadatable, org.bukkit.persistence.PersistentDataHolder

public class BedMock extends TileStateMock implements org.bukkit.block.Bed
  • Constructor Details

    • BedMock

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

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

      protected BedMock(@NotNull @NotNull BedMock state)
  • Method Details

    • getColor

      @Nullable public @Nullable org.bukkit.DyeColor getColor()
      Specified by:
      getColor in interface org.bukkit.material.Colorable
    • setColor

      public void setColor(org.bukkit.DyeColor color)
      Specified by:
      setColor in interface org.bukkit.material.Colorable
    • 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.