Package wtf.choco.locksecurity.api.block
Interface ILockedMultiBlock
- All Superinterfaces:
ILockedBlock
public interface ILockedMultiBlock extends ILockedBlock
Represents a more specific type of
ILockedBlock
that holds more than one
position in the world (such as doors or double chests).- Since:
- 3.0.0
- Author:
- Parker Hawke - Choco
-
Method Summary
Modifier and Type Method Description org.bukkit.block.Block
getSecondaryBlock()
Get the second BukkitBlock
represented by this locked block.int
getXSecondary()
Get the second x coordinate at which this locked block resides.int
getYSecondary()
Get the second y coordinate at which this locked block resides.int
getZSecondary()
Get the second z coordinate at which this locked block resides.Methods inherited from interface wtf.choco.locksecurity.api.block.ILockedBlock
getBlock, getLocation, getLockTime, getNickname, getOwner, getType, getWorld, getX, getY, getZ, hasNickname, isOwner, isOwner, isValidKey, setNickname, setOwner
-
Method Details
-
getSecondaryBlock
@NotNull org.bukkit.block.Block getSecondaryBlock()Get the second BukkitBlock
represented by this locked block.- Returns:
- the second block
-
getXSecondary
int getXSecondary()Get the second x coordinate at which this locked block resides.- Returns:
- the second x coordinate
-
getYSecondary
int getYSecondary()Get the second y coordinate at which this locked block resides.- Returns:
- the second y coordinate
-
getZSecondary
int getZSecondary()Get the second z coordinate at which this locked block resides.- Returns:
- the second z coordinate
-