Class WorldBorder.MovingBorderExtent
java.lang.Object
net.minecraft.world.level.border.WorldBorder.MovingBorderExtent
- All Implemented Interfaces:
WorldBorder.BorderExtent
- Enclosing class:
WorldBorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final longprivate final doubleprivate final longprivate longprivate doubleprivate doubleprivate final double -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateMovingBorderExtent(double from, double to, long duration, long gameTime) -
Method Summary
-
Field Details
-
from
private final double from -
to
private final double to -
lerpEnd
private final long lerpEnd -
lerpBegin
private final long lerpBegin -
lerpDuration
private final double lerpDuration -
lerpProgress
private long lerpProgress -
size
private double size -
previousSize
private double previousSize
-
-
Constructor Details
-
MovingBorderExtent
private MovingBorderExtent(double from, double to, long duration, long gameTime)
-
-
Method Details
-
getMinX
public double getMinX(float deltaPartialTick) - Specified by:
getMinXin interfaceWorldBorder.BorderExtent
-
getMinZ
public double getMinZ(float deltaPartialTick) - Specified by:
getMinZin interfaceWorldBorder.BorderExtent
-
getMaxX
public double getMaxX(float deltaPartialTick) - Specified by:
getMaxXin interfaceWorldBorder.BorderExtent
-
getMaxZ
public double getMaxZ(float deltaPartialTick) - Specified by:
getMaxZin interfaceWorldBorder.BorderExtent
-
getSize
public double getSize()- Specified by:
getSizein interfaceWorldBorder.BorderExtent
-
getPreviousSize
public double getPreviousSize() -
calculateSize
private double calculateSize() -
getLerpSpeed
public double getLerpSpeed()- Specified by:
getLerpSpeedin interfaceWorldBorder.BorderExtent
-
getLerpTime
public long getLerpTime()- Specified by:
getLerpTimein interfaceWorldBorder.BorderExtent
-
getLerpTarget
public double getLerpTarget()- Specified by:
getLerpTargetin interfaceWorldBorder.BorderExtent
-
getStatus
- Specified by:
getStatusin interfaceWorldBorder.BorderExtent
-
onCenterChange
public void onCenterChange()- Specified by:
onCenterChangein interfaceWorldBorder.BorderExtent
-
onAbsoluteMaxSizeChange
public void onAbsoluteMaxSizeChange()- Specified by:
onAbsoluteMaxSizeChangein interfaceWorldBorder.BorderExtent
-
update
- Specified by:
updatein interfaceWorldBorder.BorderExtent
-
getCollisionShape
- Specified by:
getCollisionShapein interfaceWorldBorder.BorderExtent
-