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
Mock implementation of
Bed.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.block.data.type.Bed
org.bukkit.block.data.type.Bed.Part -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Set<org.bukkit.block.BlockFace> getFaces()@NotNull org.bukkit.block.BlockFace@NotNull org.bukkit.block.data.type.Bed.PartgetPart()booleanvoidsetFacing(@NotNull org.bukkit.block.BlockFace facing) voidsetOccupied(boolean occupied) voidsetPart(@NotNull org.bukkit.block.data.type.Bed.Part part) 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
-
BedMock
public BedMock(@NotNull @NotNull org.bukkit.Material type) - Parameters:
type- The material this data is for.
-
-
Method Details
-
getPart
@NotNull public @NotNull org.bukkit.block.data.type.Bed.Part getPart()- Specified by:
getPartin interfaceorg.bukkit.block.data.type.Bed
-
setPart
public void setPart(@NotNull @NotNull org.bukkit.block.data.type.Bed.Part part) - Specified by:
setPartin interfaceorg.bukkit.block.data.type.Bed
-
isOccupied
public boolean isOccupied()- Specified by:
isOccupiedin interfaceorg.bukkit.block.data.type.Bed
-
setOccupied
public void setOccupied(boolean occupied) - Specified by:
setOccupiedin interfaceorg.bukkit.block.data.type.Bed
-
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
-