Package net.minecraft.world.border
Class WorldBorder.MovingArea
java.lang.Object
net.minecraft.world.border.WorldBorder.MovingArea
- All Implemented Interfaces:
WorldBorder.Area
- Enclosing class:
- WorldBorder
class WorldBorder.MovingArea extends Object implements WorldBorder.Area
-
Field Summary
Fields Modifier and Type Field Description private doublenewSizeprivate doubleoldSizeprivate doubletimeDurationprivate longtimeEndprivate longtimeStart -
Constructor Summary
Constructors Modifier Constructor Description privateMovingArea(double oldSize, double newSize, long duration) -
Method Summary
Modifier and Type Method Description VoxelShapeasVoxelShape()WorldBorder.AreagetAreaInstance()doublegetBoundEast()doublegetBoundNorth()doublegetBoundSouth()doublegetBoundWest()doublegetShrinkingSpeed()doublegetSize()WorldBorderStagegetStage()longgetTargetRemainingTime()doublegetTargetSize()voidonCenterChanged()voidonMaxWorldBorderRadiusChanged()
-
Field Details
-
oldSize
private final double oldSize -
newSize
private final double newSize -
timeEnd
private final long timeEnd -
timeStart
private final long timeStart -
timeDuration
private final double timeDuration
-
-
Constructor Details
-
MovingArea
private MovingArea(double oldSize, double newSize, long duration)
-
-
Method Details
-
getBoundWest
public double getBoundWest()- Specified by:
getBoundWestin interfaceWorldBorder.Area
-
getBoundNorth
public double getBoundNorth()- Specified by:
getBoundNorthin interfaceWorldBorder.Area
-
getBoundEast
public double getBoundEast()- Specified by:
getBoundEastin interfaceWorldBorder.Area
-
getBoundSouth
public double getBoundSouth()- Specified by:
getBoundSouthin interfaceWorldBorder.Area
-
getSize
public double getSize()- Specified by:
getSizein interfaceWorldBorder.Area
-
getShrinkingSpeed
@Environment(CLIENT) public double getShrinkingSpeed()- Specified by:
getShrinkingSpeedin interfaceWorldBorder.Area
-
getTargetRemainingTime
public long getTargetRemainingTime()- Specified by:
getTargetRemainingTimein interfaceWorldBorder.Area
-
getTargetSize
public double getTargetSize()- Specified by:
getTargetSizein interfaceWorldBorder.Area
-
getStage
- Specified by:
getStagein interfaceWorldBorder.Area
-
onCenterChanged
public void onCenterChanged()- Specified by:
onCenterChangedin interfaceWorldBorder.Area
-
onMaxWorldBorderRadiusChanged
public void onMaxWorldBorderRadiusChanged()- Specified by:
onMaxWorldBorderRadiusChangedin interfaceWorldBorder.Area
-
getAreaInstance
- Specified by:
getAreaInstancein interfaceWorldBorder.Area
-
asVoxelShape
- Specified by:
asVoxelShapein interfaceWorldBorder.Area
-