public class WorldBorder
extends java.lang.Object
Constructor and Description |
---|
WorldBorder() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(IBorderListener listener) |
boolean |
contains(AxisAlignedBB bb) |
boolean |
contains(BlockPos pos) |
boolean |
contains(ChunkPos range) |
double |
getCenterX() |
double |
getCenterZ() |
double |
getClosestDistance(double x,
double z) |
double |
getClosestDistance(Entity entityIn) |
double |
getDamageAmount() |
double |
getDamageBuffer() |
double |
getDiameter() |
protected java.util.List<IBorderListener> |
getListeners() |
double |
getResizeSpeed() |
int |
getSize() |
EnumBorderStatus |
getStatus() |
double |
getTargetSize() |
long |
getTimeUntilTarget() |
int |
getWarningDistance() |
int |
getWarningTime() |
double |
maxX() |
double |
maxZ() |
double |
minX() |
double |
minZ() |
void |
removeListener(IBorderListener listener) |
void |
setCenter(double x,
double z) |
void |
setDamageAmount(double newAmount) |
void |
setDamageBuffer(double bufferSize) |
void |
setSize(int size) |
void |
setTransition(double newSize) |
void |
setTransition(double oldSize,
double newSize,
long time) |
void |
setWarningDistance(int warningDistance) |
void |
setWarningTime(int warningTime) |
public boolean contains(BlockPos pos)
public boolean contains(ChunkPos range)
public boolean contains(AxisAlignedBB bb)
public double getClosestDistance(Entity entityIn)
public double getClosestDistance(double x, double z)
public EnumBorderStatus getStatus()
public double minX()
public double minZ()
public double maxX()
public double maxZ()
public double getCenterX()
public double getCenterZ()
public void setCenter(double x, double z)
public double getDiameter()
public long getTimeUntilTarget()
public double getTargetSize()
public void setTransition(double newSize)
public void setTransition(double oldSize, double newSize, long time)
protected java.util.List<IBorderListener> getListeners()
public void addListener(IBorderListener listener)
public void setSize(int size)
public int getSize()
public double getDamageBuffer()
public void setDamageBuffer(double bufferSize)
public double getDamageAmount()
public void setDamageAmount(double newAmount)
public double getResizeSpeed()
public int getWarningTime()
public void setWarningTime(int warningTime)
public int getWarningDistance()
public void setWarningDistance(int warningDistance)
public void removeListener(IBorderListener listener)