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 doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final doubleprivate final longprivate final intprivate 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 TypeMethodDescriptiondoubledoubledoubledoubledoublegetSize()doublelongintintstatic WorldBorder.Settingsread(com.mojang.serialization.DynamicLike<?> pDynamic, WorldBorder.Settings pDefaultValue) voidwrite(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<?> pDynamic, WorldBorder.Settings pDefaultValue) -
write
-