Class SwitchMock
java.lang.Object
be.seeseemelk.mockbukkit.block.data.BlockDataMock
be.seeseemelk.mockbukkit.block.data.SwitchMock
- All Implemented Interfaces:
Cloneable,BlockData,Directional,FaceAttachable,Powerable,Switch
Mock implementation of a
Switch.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.block.data.FaceAttachable
FaceAttachable.AttachedFaceNested classes/interfaces inherited from interface org.bukkit.block.data.type.Switch
Switch.Face -
Constructor Summary
ConstructorsConstructorDescriptionSwitchMock(@NotNull Material type) Constructs a newSwitchMockfor the providedMaterial. -
Method Summary
Modifier and TypeMethodDescription@NotNull FaceAttachable.AttachedFace@NotNull Switch.FacegetFace()getFaces()@NotNull BlockFacebooleanvoidsetAttachedFace(@NotNull FaceAttachable.AttachedFace face) voidsetFace(@NotNull Switch.Face face) voidvoidsetPowered(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
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() -
setPowered
public void setPowered(boolean powered) - Specified by:
setPoweredin interfacePowerable
-
getAttachedFace
- Specified by:
getAttachedFacein interfaceFaceAttachable
-
setAttachedFace
- Specified by:
setAttachedFacein interfaceFaceAttachable
-
getFacing
- Specified by:
getFacingin interfaceDirectional
-
setFacing
- Specified by:
setFacingin interfaceDirectional
-
getFaces
- Specified by:
getFacesin interfaceDirectional
-
getFace
-
setFace
-