@ThreadSafe @Deprecated public interface WorldBorder
Modifier and Type | Method and Description |
---|---|
Pair<Integer,Integer> |
center()
Deprecated.
Gets the position where the worldborder is centered
|
int |
contractionTime()
Deprecated.
Gets the time the border has to contract to the contraction target
|
void |
modify(int mod,
int time)
Deprecated.
Modifies the border square's length and width
|
void |
setCenter(int x,
int z)
Deprecated.
Sets the center X and Z coordinates for the border
|
int |
size()
Deprecated.
Gets the size of the worldborder
|
int |
sizeContraction()
Deprecated.
Gets to what size a border is contracting, 60000000 by default
|
int size()
void modify(int mod, int time)
mod
- a positive integer to indicate an expansion by that amount, a negative to indicate a regression by
that amounttime
- the time over which the border will expand or contract, 0 to apply immediatelyPair<Integer,Integer> center()
The returned immutable pair of integers represents the X and Y coordinates respectively
void setCenter(int x, int z)
x
- the X coordinatez
- the Z coordinateint sizeContraction()
int contractionTime()
Copyright © 2016. All rights reserved.