Package net.minecraft.world.level.border
Class WorldBorder.Settings
java.lang.Object
net.minecraft.world.level.border.WorldBorder.Settings
- Enclosing class:
- WorldBorder
-
Field Summary
Modifier 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
ConstructorDescriptionSettings
(double p_62011_, double p_62012_, double p_62013_, double p_62014_, int p_62015_, int p_62016_, double p_62017_, long p_62018_, double p_62019_) Settings
(WorldBorder p_62032_) -
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 p_62041_)
-
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 p_62011_, double p_62012_, double p_62013_, double p_62014_, int p_62015_, int p_62016_, double p_62017_, long p_62018_, double p_62019_) -
Settings
Settings(WorldBorder p_62032_)
-
-
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
-