Package net.minecraft.world.border
Class WorldBorder.StaticArea
java.lang.Object
net.minecraft.world.border.WorldBorder.StaticArea
- All Implemented Interfaces:
WorldBorder.Area
- Enclosing class:
- WorldBorder
class WorldBorder.StaticArea extends Object implements WorldBorder.Area
-
Field Summary
Fields Modifier and Type Field Description private doubleboundEastprivate doubleboundNorthprivate doubleboundSouthprivate doubleboundWestprivate VoxelShapeshapeprivate doublesize -
Constructor Summary
Constructors Constructor Description StaticArea(double double2) -
Method Summary
Modifier and Type Method Description VoxelShapeasVoxelShape()WorldBorder.AreagetAreaInstance()doublegetBoundEast()doublegetBoundNorth()doublegetBoundSouth()doublegetBoundWest()doublegetShrinkingSpeed()doublegetSize()WorldBorderStagegetStage()longgetTargetRemainingTime()doublegetTargetSize()voidonCenterChanged()voidonMaxWorldBorderRadiusChanged()private voidrecalculateBounds()
-
Field Details
-
size
private final double size -
boundWest
private double boundWest -
boundNorth
private double boundNorth -
boundEast
private double boundEast -
boundSouth
private double boundSouth -
shape
-
-
Constructor Details
-
StaticArea
public StaticArea(double double2)
-
-
Method Details
-
getBoundWest
public double getBoundWest()- Specified by:
getBoundWestin interfaceWorldBorder.Area
-
getBoundEast
public double getBoundEast()- Specified by:
getBoundEastin interfaceWorldBorder.Area
-
getBoundNorth
public double getBoundNorth()- Specified by:
getBoundNorthin interfaceWorldBorder.Area
-
getBoundSouth
public double getBoundSouth()- Specified by:
getBoundSouthin interfaceWorldBorder.Area
-
getSize
public double getSize()- Specified by:
getSizein interfaceWorldBorder.Area
-
getStage
- Specified by:
getStagein 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
-
recalculateBounds
private void recalculateBounds() -
onMaxWorldBorderRadiusChanged
public void onMaxWorldBorderRadiusChanged()- Specified by:
onMaxWorldBorderRadiusChangedin interfaceWorldBorder.Area
-
onCenterChanged
public void onCenterChanged()- Specified by:
onCenterChangedin interfaceWorldBorder.Area
-
getAreaInstance
- Specified by:
getAreaInstancein interfaceWorldBorder.Area
-
asVoxelShape
- Specified by:
asVoxelShapein interfaceWorldBorder.Area
-