Package net.minecraft.world.level.border
Class WorldBorder.Settings
java.lang.Object
net.minecraft.world.level.border.WorldBorder.Settings
- Enclosing class:
WorldBorder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final double
private final double
private final double
private final double
private final double
private final long
private final int
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionSettings
(double pCenterX, double pCenterZ, double pDamagePerBlock, double pSafeZone, int pWarningBlocks, int pWarningTime, double pSize, long pSizeLerpTime, double pSizeLerpTarget) Settings
(WorldBorder pBorder) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
getSize()
double
long
int
int
static WorldBorder.Settings
read
(com.mojang.serialization.DynamicLike<?> p_62038_, WorldBorder.Settings p_62039_) void
write
(CompoundTag pNbt)
-
Field Details
-
centerX
private final double centerX -
centerZ
private final double centerZ -
damagePerBlock
private final double damagePerBlock -
safeZone
private final double safeZone -
warningBlocks
private final int warningBlocks -
warningTime
private final int warningTime -
size
private final double size -
sizeLerpTime
private final long sizeLerpTime -
sizeLerpTarget
private final double sizeLerpTarget
-
-
Constructor Details
-
Settings
Settings(double pCenterX, double pCenterZ, double pDamagePerBlock, double pSafeZone, int pWarningBlocks, int pWarningTime, double pSize, long pSizeLerpTime, double pSizeLerpTarget) -
Settings
Settings(WorldBorder pBorder)
-
-
Method Details
-
getCenterX
public double getCenterX() -
getCenterZ
public double getCenterZ() -
getDamagePerBlock
public double getDamagePerBlock() -
getSafeZone
public double getSafeZone() -
getWarningBlocks
public int getWarningBlocks() -
getWarningTime
public int getWarningTime() -
getSize
public double getSize() -
getSizeLerpTime
public long getSizeLerpTime() -
getSizeLerpTarget
public double getSizeLerpTarget() -
read
public static WorldBorder.Settings read(com.mojang.serialization.DynamicLike<?> p_62038_, WorldBorder.Settings p_62039_) -
write
-