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 centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long sizeLerpTime, double sizeLerpTarget) Settings
(WorldBorder border) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
getSize()
double
long
int
int
static WorldBorder.Settings
read
(com.mojang.serialization.DynamicLike<?> dynamic, WorldBorder.Settings defaultValue) void
write
(CompoundTag nbt)
-
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 centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long sizeLerpTime, double sizeLerpTarget) -
Settings
Settings(WorldBorder border)
-
-
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<?> dynamic, WorldBorder.Settings defaultValue) -
write
-