WorldBorder

public interface WorldBorder

Functions

Link copied to clipboard
public abstract Location getCenter()
Gets the current border center.
Link copied to clipboard
public abstract double getDamageAmount()
Gets the current border damage amount.
Link copied to clipboard
public abstract double getDamageBuffer()
Gets the current border damage buffer.
Link copied to clipboard
public abstract double getSize()
Gets the current side length of the border.
Link copied to clipboard
public abstract int getWarningDistance()
Gets the current border warning distance.
Link copied to clipboard
public abstract int getWarningTime()
Gets the current border warning time in seconds.
Link copied to clipboard
public abstract void reset()
Resets the border to default values.
Link copied to clipboard
public abstract void setCenter(Location location)
public abstract void setCenter(double x, double z)
Sets the new border center.
Link copied to clipboard
public abstract void setDamageAmount(double damage)
Sets the amount of damage player takes when outside the border plus the border buffer.
Link copied to clipboard
public abstract void setDamageBuffer(double blocks)
Sets the amount of blocks player may safely be outside the border before taking damage.
Link copied to clipboard
public abstract void setSize(double newSize)
public abstract void setSize(double newSize, long seconds)
Sets the border to square region with the specified side length in blocks.
Link copied to clipboard
public abstract void setWarningDistance(int distance)
Sets the warning distance that causes the screen to be tinted red when the player is within the specified number of blocks from the border.
Link copied to clipboard
public abstract void setWarningTime(int seconds)
Sets the warning time that causes the screen to be tinted red when contracting border will reach the player within the specified time.