Class BedMock

java.lang.Object
be.seeseemelk.mockbukkit.block.data.BlockDataMock
be.seeseemelk.mockbukkit.block.data.BedMock
All Implemented Interfaces:
Cloneable, org.bukkit.block.data.BlockData, org.bukkit.block.data.Directional, org.bukkit.block.data.type.Bed

public class BedMock extends BlockDataMock implements org.bukkit.block.data.type.Bed
Mock implementation of Bed.
  • Constructor Details

    • BedMock

      public BedMock(@NotNull @NotNull org.bukkit.Material type)
      Constructs a new BedMock for the provided Material. Only supports materials in Tag.BEDS
      Parameters:
      type - The material this data is for.
  • Method Details

    • getPart

      @NotNull public @NotNull org.bukkit.block.data.type.Bed.Part getPart()
      Specified by:
      getPart in interface org.bukkit.block.data.type.Bed
    • setPart

      public void setPart(@NotNull @NotNull org.bukkit.block.data.type.Bed.Part part)
      Specified by:
      setPart in interface org.bukkit.block.data.type.Bed
    • isOccupied

      public boolean isOccupied()
      Specified by:
      isOccupied in interface org.bukkit.block.data.type.Bed
    • setOccupied

      public void setOccupied(boolean occupied)
      Specified by:
      setOccupied in interface org.bukkit.block.data.type.Bed
    • getFacing

      @NotNull public @NotNull org.bukkit.block.BlockFace getFacing()
      Specified by:
      getFacing in interface org.bukkit.block.data.Directional
    • setFacing

      public void setFacing(@NotNull @NotNull org.bukkit.block.BlockFace facing)
      Specified by:
      setFacing in interface org.bukkit.block.data.Directional
    • getFaces

      @NotNull public @NotNull Set<org.bukkit.block.BlockFace> getFaces()
      Specified by:
      getFaces in interface org.bukkit.block.data.Directional