class WorldBorder.StaticArea extends Object implements WorldBorder.Area
Modifier and Type | Field and Description |
---|---|
private double |
boundEast |
private double |
boundNorth |
private double |
boundSouth |
private double |
boundWest |
private VoxelShape |
shape |
private double |
size |
Constructor and Description |
---|
StaticArea(double double2) |
Modifier and Type | Method and Description |
---|---|
VoxelShape |
asVoxelShape() |
WorldBorder.Area |
getAreaInstance() |
double |
getBoundEast() |
double |
getBoundNorth() |
double |
getBoundSouth() |
double |
getBoundWest() |
double |
getShrinkingSpeed() |
double |
getSize() |
WorldBorderStage |
getStage() |
long |
getTargetRemainingTime() |
double |
getTargetSize() |
void |
onCenterChanged() |
void |
onMaxWorldBorderRadiusChanged() |
private void |
recalculateBounds() |
private final double size
private double boundWest
private double boundNorth
private double boundEast
private double boundSouth
private VoxelShape shape
public double getBoundWest()
getBoundWest
in interface WorldBorder.Area
public double getBoundEast()
getBoundEast
in interface WorldBorder.Area
public double getBoundNorth()
getBoundNorth
in interface WorldBorder.Area
public double getBoundSouth()
getBoundSouth
in interface WorldBorder.Area
public double getSize()
getSize
in interface WorldBorder.Area
@Environment(value=CLIENT) public WorldBorderStage getStage()
getStage
in interface WorldBorder.Area
@Environment(value=CLIENT) public double getShrinkingSpeed()
getShrinkingSpeed
in interface WorldBorder.Area
public long getTargetRemainingTime()
getTargetRemainingTime
in interface WorldBorder.Area
public double getTargetSize()
getTargetSize
in interface WorldBorder.Area
private void recalculateBounds()
public void onMaxWorldBorderRadiusChanged()
onMaxWorldBorderRadiusChanged
in interface WorldBorder.Area
public void onCenterChanged()
onCenterChanged
in interface WorldBorder.Area
public WorldBorder.Area getAreaInstance()
getAreaInstance
in interface WorldBorder.Area
public VoxelShape asVoxelShape()
asVoxelShape
in interface WorldBorder.Area