public class WorldBorder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
WorldBorder.IBorderInfo |
(package private) class |
WorldBorder.MovingBorderInfo |
(package private) class |
WorldBorder.StationaryBorderInfo |
Modifier and Type | Field and Description |
---|---|
private double |
centerX |
private double |
centerZ |
private double |
damageBuffer |
private double |
damagePerBlock |
private java.util.List<IBorderListener> |
listeners |
private WorldBorder.IBorderInfo |
state |
private int |
warningDistance |
private int |
warningTime |
private int |
worldSize |
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) |
void |
copyFrom(WorldInfo info) |
void |
copyTo(WorldInfo info) |
double |
getCenterX() |
double |
getCenterZ() |
double |
getClosestDistance(double x,
double z) |
double |
getClosestDistance(Entity entityIn) |
double |
getDamageBuffer() |
double |
getDamagePerBlock() |
double |
getDiameter() |
protected java.util.List<IBorderListener> |
getListeners() |
double |
getResizeSpeed() |
VoxelShape |
getShape() |
int |
getSize() |
BorderStatus |
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 |
setDamageBuffer(double bufferSize) |
void |
setDamagePerBlock(double newAmount) |
void |
setSize(int size) |
void |
setTransition(double newSize) |
void |
setTransition(double oldSize,
double newSize,
long time) |
void |
setWarningDistance(int warningDistance) |
void |
setWarningTime(int warningTime) |
void |
tick() |
private final java.util.List<IBorderListener> listeners
private double damagePerBlock
private double damageBuffer
private int warningTime
private int warningDistance
private double centerX
private double centerZ
private int worldSize
private WorldBorder.IBorderInfo state
public boolean contains(BlockPos pos)
public boolean contains(ChunkPos range)
public boolean contains(AxisAlignedBB bb)
public double getClosestDistance(Entity entityIn)
public VoxelShape getShape()
public double getClosestDistance(double x, double z)
public BorderStatus 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 removeListener(IBorderListener listener)
public void setSize(int size)
public int getSize()
public double getDamageBuffer()
public void setDamageBuffer(double bufferSize)
public double getDamagePerBlock()
public void setDamagePerBlock(double newAmount)
public double getResizeSpeed()
public int getWarningTime()
public void setWarningTime(int warningTime)
public int getWarningDistance()
public void setWarningDistance(int warningDistance)
public void tick()
public void copyTo(WorldInfo info)
public void copyFrom(WorldInfo info)