class WorldBorder.MovingArea extends Object implements WorldBorder.Area
Modifier and Type | Field and Description |
---|---|
private double |
newSize |
private double |
oldSize |
private double |
timeDuration |
private long |
timeEnd |
private long |
timeStart |
Modifier | Constructor and Description |
---|---|
private |
MovingArea(double oldSize,
double newSize,
long duration) |
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 final double oldSize
private final double newSize
private final long timeEnd
private final long timeStart
private final double timeDuration
public double getBoundWest()
getBoundWest
in interface WorldBorder.Area
public double getBoundNorth()
getBoundNorth
in interface WorldBorder.Area
public double getBoundEast()
getBoundEast
in interface WorldBorder.Area
public double getBoundSouth()
getBoundSouth
in interface WorldBorder.Area
public double getSize()
getSize
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
@Environment(value=CLIENT) public WorldBorderStage getStage()
getStage
in interface WorldBorder.Area
public void onCenterChanged()
onCenterChanged
in interface WorldBorder.Area
public void onMaxWorldBorderRadiusChanged()
onMaxWorldBorderRadiusChanged
in interface WorldBorder.Area
public WorldBorder.Area getAreaInstance()
getAreaInstance
in interface WorldBorder.Area
public VoxelShape asVoxelShape()
asVoxelShape
in interface WorldBorder.Area