public class GlowWorldBorder extends Object implements org.bukkit.WorldBorder
| Constructor and Description |
|---|
GlowWorldBorder(org.bukkit.World world)
Initializes a new
WorldBorder for the given world. |
| Modifier and Type | Method and Description |
|---|---|
WorldBorderMessage |
createMessage()
Creates a
WorldBorderMessage containing information to initialize the world border on
the client-side. |
org.bukkit.Location |
getCenter() |
double |
getDamageAmount() |
double |
getDamageBuffer() |
double |
getSize() |
double |
getSizeLerpTarget()
The target side length the world border is being resized to, in blocks.
|
long |
getSizeLerpTime()
The delay in ticks until the world border's sides should reach the target length.
|
int |
getWarningDistance() |
int |
getWarningTime() |
boolean |
isInside(org.bukkit.Location location) |
void |
pulse()
Pulses the world border for each tick.
|
void |
reset() |
void |
setCenter(double x,
double z) |
void |
setCenter(org.bukkit.Location location) |
void |
setDamageAmount(double damageAmount) |
void |
setDamageBuffer(double damageBuffer) |
void |
setSize(double size) |
void |
setSize(double size,
long seconds) |
void |
setWarningDistance(int distance) |
void |
setWarningTime(int seconds) |
public GlowWorldBorder(org.bukkit.World world)
WorldBorder for the given world.world - the world to initialize a new WorldBorder for.public WorldBorderMessage createMessage()
WorldBorderMessage containing information to initialize the world border on
the client-side.WorldBorderMessage for this world border.public void pulse()
Attempts to call this method more than once per tick will be ignored.
public void reset()
reset in interface org.bukkit.WorldBorderpublic void setSize(double size)
setSize in interface org.bukkit.WorldBorderpublic void setSize(double size,
long seconds)
setSize in interface org.bukkit.WorldBorderpublic void setCenter(org.bukkit.Location location)
setCenter in interface org.bukkit.WorldBorderpublic void setCenter(double x,
double z)
setCenter in interface org.bukkit.WorldBorderpublic void setWarningTime(int seconds)
setWarningTime in interface org.bukkit.WorldBorderpublic void setWarningDistance(int distance)
setWarningDistance in interface org.bukkit.WorldBorderpublic boolean isInside(org.bukkit.Location location)
isInside in interface org.bukkit.WorldBorderpublic double getSize()
getSize in interface org.bukkit.WorldBorderpublic double getSizeLerpTarget()
public org.bukkit.Location getCenter()
getCenter in interface org.bukkit.WorldBorderpublic double getDamageBuffer()
getDamageBuffer in interface org.bukkit.WorldBorderpublic void setDamageBuffer(double damageBuffer)
setDamageBuffer in interface org.bukkit.WorldBorderpublic double getDamageAmount()
getDamageAmount in interface org.bukkit.WorldBorderpublic void setDamageAmount(double damageAmount)
setDamageAmount in interface org.bukkit.WorldBorderpublic int getWarningTime()
getWarningTime in interface org.bukkit.WorldBorderpublic int getWarningDistance()
getWarningDistance in interface org.bukkit.WorldBorderpublic long getSizeLerpTime()
Copyright © 2021. All rights reserved.