public static interface WorldBorder.Builder extends ResettableBuilder<WorldBorder,WorldBorder.Builder>
| Modifier and Type | Method and Description | 
|---|---|
WorldBorder | 
build()
Builds the world border from the information given. 
 | 
WorldBorder.Builder | 
center(double x,
      double z)
Sets the centre of this world border. 
 | 
WorldBorder.Builder | 
damageAmount(double damage)
Sets the damage amount of this world border. 
 | 
WorldBorder.Builder | 
damageThreshold(double distance)
Sets the damage threshold of this world border. 
 | 
WorldBorder.Builder | 
diameter(double diameter)
Sets the diameter of this world border. 
 | 
WorldBorder.Builder | 
from(WorldBorder border)
Copies the required data from the passed  
WorldBorder. | 
WorldBorder.Builder | 
warningDistance(int distance)
Sets the warning distance of this world border. 
 | 
WorldBorder.Builder | 
warningTime(int time)
Sets the warning time of this world border. 
 | 
resetWorldBorder.Builder from(WorldBorder border)
WorldBorder.from in interface ResettableBuilder<WorldBorder,WorldBorder.Builder>border - The world border whose data is to be copiedWorldBorder.Builder diameter(double diameter)
diameter - The diameter that this border will have.WorldBorder.setDiameter(double)WorldBorder.Builder center(double x, double z)
x - The x-coordinate of the new centrez - The z-coordinate of the new centreWorldBorder.setCenter(double, double)WorldBorder.Builder warningTime(int time)
time - Warning time in secondsWorldBorder.setWarningTime(int)WorldBorder.Builder warningDistance(int distance)
distance - The warning distance in blocksWorldBorder.setWarningDistance(int)WorldBorder.Builder damageThreshold(double distance)
distance - The damage threshold in blocksWorldBorder.setDamageThreshold(double)WorldBorder.Builder damageAmount(double damage)
damage - The damage amountWorldBorder.setDamageAmount(double)WorldBorder build()
WorldBorder with default properties is built.