Interface GridLockedWatcher
- All Known Implementing Classes:
BlockDisplayWatcher,FallingBlockWatcher,HangingWatcher,ItemFrameWatcher,PaintingWatcher
public interface GridLockedWatcher
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublecenter(double origin, double width) doubleGet the width of the block / 2doubleGet the length of the block / 2booleanIf the plugin should try to center this blockvoidsetGridLocked(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)
-