Package net.glowstone
Class GlowWorldBorder
java.lang.Object
net.glowstone.GlowWorldBorder
- All Implemented Interfaces:
org.bukkit.WorldBorder
-
Constructor Summary
ConstructorsConstructorDescriptionGlowWorldBorder(org.bukkit.World world) Initializes a newWorldBorderfor the given world. -
Method Summary
Modifier and TypeMethodDescriptionCreates aWorldBorderMessagecontaining information to initialize the world border on the client-side.org.bukkit.LocationdoubledoubledoublegetSize()doubleThe target side length the world border is being resized to, in blocks.longThe delay in ticks until the world border's sides should reach the target length.intintorg.bukkit.WorldgetWorld()booleanisInside(org.bukkit.Location location) voidpulse()Pulses the world border for each tick.voidreset()voidsetCenter(double x, double z) voidsetCenter(org.bukkit.Location location) voidsetDamageAmount(double damageAmount) voidsetDamageBuffer(double damageBuffer) voidsetSize(double size) voidsetSize(double size, long seconds) voidsetWarningDistance(int distance) voidsetWarningTime(int seconds) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bukkit.WorldBorder
isInBounds
-
Constructor Details
-
GlowWorldBorder
public GlowWorldBorder(org.bukkit.World world) Initializes a newWorldBorderfor the given world.- Parameters:
world- the world to initialize a newWorldBorderfor.
-
-
Method Details
-
createMessage
Creates aWorldBorderMessagecontaining information to initialize the world border on the client-side.- Returns:
- a new
WorldBorderMessagefor this world border.
-
pulse
public void pulse()Pulses the world border for each tick.Attempts to call this method more than once per tick will be ignored.
-
reset
public void reset()- Specified by:
resetin interfaceorg.bukkit.WorldBorder
-
setSize
public void setSize(double size) - Specified by:
setSizein interfaceorg.bukkit.WorldBorder
-
setSize
public void setSize(double size, long seconds) - Specified by:
setSizein interfaceorg.bukkit.WorldBorder
-
setCenter
public void setCenter(org.bukkit.Location location) - Specified by:
setCenterin interfaceorg.bukkit.WorldBorder
-
setCenter
public void setCenter(double x, double z) - Specified by:
setCenterin interfaceorg.bukkit.WorldBorder
-
setWarningTime
public void setWarningTime(int seconds) - Specified by:
setWarningTimein interfaceorg.bukkit.WorldBorder
-
setWarningDistance
public void setWarningDistance(int distance) - Specified by:
setWarningDistancein interfaceorg.bukkit.WorldBorder
-
isInside
public boolean isInside(org.bukkit.Location location) - Specified by:
isInsidein interfaceorg.bukkit.WorldBorder
-
getWorld
public org.bukkit.World getWorld()- Specified by:
getWorldin interfaceorg.bukkit.WorldBorder
-
getSize
public double getSize()- Specified by:
getSizein interfaceorg.bukkit.WorldBorder
-
getSizeLerpTarget
public double getSizeLerpTarget()The target side length the world border is being resized to, in blocks.- Returns:
- the target side length the world border is being resized to.
-
getCenter
public org.bukkit.Location getCenter()- Specified by:
getCenterin interfaceorg.bukkit.WorldBorder
-
getDamageBuffer
public double getDamageBuffer()- Specified by:
getDamageBufferin interfaceorg.bukkit.WorldBorder
-
setDamageBuffer
public void setDamageBuffer(double damageBuffer) - Specified by:
setDamageBufferin interfaceorg.bukkit.WorldBorder
-
getDamageAmount
public double getDamageAmount()- Specified by:
getDamageAmountin interfaceorg.bukkit.WorldBorder
-
setDamageAmount
public void setDamageAmount(double damageAmount) - Specified by:
setDamageAmountin interfaceorg.bukkit.WorldBorder
-
getWarningTime
public int getWarningTime()- Specified by:
getWarningTimein interfaceorg.bukkit.WorldBorder
-
getWarningDistance
public int getWarningDistance()- Specified by:
getWarningDistancein interfaceorg.bukkit.WorldBorder
-
getSizeLerpTime
public long getSizeLerpTime()The delay in ticks until the world border's sides should reach the target length.- Returns:
- the delay until the world border's sides should reach the target length.
-