Class SwitchMock

java.lang.Object
be.seeseemelk.mockbukkit.block.data.BlockDataMock
be.seeseemelk.mockbukkit.block.data.SwitchMock
All Implemented Interfaces:
Cloneable, org.bukkit.block.data.BlockData, org.bukkit.block.data.Directional, org.bukkit.block.data.FaceAttachable, org.bukkit.block.data.Powerable, org.bukkit.block.data.type.Switch

public class SwitchMock extends BlockDataMock implements org.bukkit.block.data.type.Switch
Mock implementation of a Switch.
  • Constructor Details

    • SwitchMock

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

    • isPowered

      public boolean isPowered()
      Specified by:
      isPowered in interface org.bukkit.block.data.Powerable
    • setPowered

      public void setPowered(boolean powered)
      Specified by:
      setPowered in interface org.bukkit.block.data.Powerable
    • getAttachedFace

      @NotNull public @NotNull org.bukkit.block.data.FaceAttachable.AttachedFace getAttachedFace()
      Specified by:
      getAttachedFace in interface org.bukkit.block.data.FaceAttachable
    • setAttachedFace

      public void setAttachedFace(@NotNull @NotNull org.bukkit.block.data.FaceAttachable.AttachedFace face)
      Specified by:
      setAttachedFace in interface org.bukkit.block.data.FaceAttachable
    • 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
    • getFace

      @NotNull public @NotNull org.bukkit.block.data.type.Switch.Face getFace()
      Specified by:
      getFace in interface org.bukkit.block.data.type.Switch
    • setFace

      public void setFace(@NotNull @NotNull org.bukkit.block.data.type.Switch.Face face)
      Specified by:
      setFace in interface org.bukkit.block.data.type.Switch