Class SlabMock

java.lang.Object
be.seeseemelk.mockbukkit.block.data.BlockDataMock
be.seeseemelk.mockbukkit.block.data.SlabMock
All Implemented Interfaces:
Cloneable, org.bukkit.block.data.BlockData, org.bukkit.block.data.type.Slab, org.bukkit.block.data.Waterlogged

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

    • SlabMock

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

    • getType

      @NotNull public @NotNull org.bukkit.block.data.type.Slab.Type getType()
      Specified by:
      getType in interface org.bukkit.block.data.type.Slab
    • setType

      public void setType(@NotNull @NotNull org.bukkit.block.data.type.Slab.Type type)
      Specified by:
      setType in interface org.bukkit.block.data.type.Slab
    • isWaterlogged

      public boolean isWaterlogged()
      Specified by:
      isWaterlogged in interface org.bukkit.block.data.Waterlogged
    • setWaterlogged

      public void setWaterlogged(boolean waterlogged)
      Specified by:
      setWaterlogged in interface org.bukkit.block.data.Waterlogged