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
Mock implementation of a
Switch.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.block.data.FaceAttachable
org.bukkit.block.data.FaceAttachable.AttachedFaceNested classes/interfaces inherited from interface org.bukkit.block.data.type.Switch
org.bukkit.block.data.type.Switch.Face -
Constructor Summary
ConstructorsConstructorDescriptionSwitchMock(@NotNull org.bukkit.Material type) Constructs a newSwitchMockfor the providedMaterial. -
Method Summary
Modifier and TypeMethodDescription@NotNull org.bukkit.block.data.FaceAttachable.AttachedFace@NotNull org.bukkit.block.data.type.Switch.FacegetFace()@NotNull Set<org.bukkit.block.BlockFace> getFaces()@NotNull org.bukkit.block.BlockFacebooleanvoidsetAttachedFace(@NotNull org.bukkit.block.data.FaceAttachable.AttachedFace face) voidsetFace(@NotNull org.bukkit.block.data.type.Switch.Face face) voidsetFacing(@NotNull org.bukkit.block.BlockFace facing) voidsetPowered(boolean powered) Methods inherited from class be.seeseemelk.mockbukkit.block.data.BlockDataMock
checkMaterial, checkProperty, checkType, checkType, clone, copyTo, createBlockState, equals, get, getAsString, getAsString, getCollisionShape, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, hashCode, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, mock, requiresCorrectToolForDrops, rotate, setMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Constructor Details
-
SwitchMock
public SwitchMock(@NotNull @NotNull org.bukkit.Material type) Constructs a newSwitchMockfor the providedMaterial. Only supports materials inTag.BUTTONSandMaterial.LEVER- Parameters:
type- The material this data is for.
-
-
Method Details
-
isPowered
public boolean isPowered()- Specified by:
isPoweredin interfaceorg.bukkit.block.data.Powerable
-
setPowered
public void setPowered(boolean powered) - Specified by:
setPoweredin interfaceorg.bukkit.block.data.Powerable
-
getAttachedFace
@NotNull public @NotNull org.bukkit.block.data.FaceAttachable.AttachedFace getAttachedFace()- Specified by:
getAttachedFacein interfaceorg.bukkit.block.data.FaceAttachable
-
setAttachedFace
public void setAttachedFace(@NotNull @NotNull org.bukkit.block.data.FaceAttachable.AttachedFace face) - Specified by:
setAttachedFacein interfaceorg.bukkit.block.data.FaceAttachable
-
getFacing
@NotNull public @NotNull org.bukkit.block.BlockFace getFacing()- Specified by:
getFacingin interfaceorg.bukkit.block.data.Directional
-
setFacing
public void setFacing(@NotNull @NotNull org.bukkit.block.BlockFace facing) - Specified by:
setFacingin interfaceorg.bukkit.block.data.Directional
-
getFaces
- Specified by:
getFacesin interfaceorg.bukkit.block.data.Directional
-
getFace
@NotNull public @NotNull org.bukkit.block.data.type.Switch.Face getFace()- Specified by:
getFacein interfaceorg.bukkit.block.data.type.Switch
-
setFace
public void setFace(@NotNull @NotNull org.bukkit.block.data.type.Switch.Face face) - Specified by:
setFacein interfaceorg.bukkit.block.data.type.Switch
-