Interface GridLockedWatcher
- All Known Implementing Classes:
BlockDisplayWatcher
,FallingBlockWatcher
public interface GridLockedWatcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic double
center
(double origin, double width) double
Get the width of the block / 2double
Get the length of the block / 2boolean
If the plugin should try to center this blockvoid
setGridLocked
(boolean gridLocked) Make the plugin start centering this block
-
Method Details
-
getWidthX
double getWidthX()Get the width of the block / 2 -
getWidthZ
double getWidthZ()Get the length of the block / 2 -
isGridLocked
boolean isGridLocked()If the plugin should try to center this block -
setGridLocked
void setGridLocked(boolean gridLocked) Make the plugin start centering this block- Parameters:
gridLocked
-
-
center
static double center(double origin, double width)
-