public static class WorldBorder.Properties extends Object
Modifier and Type | Field and Description |
---|---|
private double |
buffer |
private double |
centerX |
private double |
centerZ |
private double |
damagePerBlock |
private double |
size |
private long |
targetRemainingTime |
private double |
targetSize |
private int |
warningBlocks |
private int |
warningTime |
Modifier | Constructor and Description |
---|---|
private |
Properties(double centerX,
double centerZ,
double damagePerBlock,
double buffer,
int warningBlocks,
int warningTime,
double size,
long targetRemainingTime,
double targetSize) |
private |
Properties(WorldBorder worldBorder) |
Modifier and Type | Method and Description |
---|---|
static WorldBorder.Properties |
fromDynamic(com.mojang.serialization.DynamicLike<?> dynamicLike,
WorldBorder.Properties properties) |
double |
getBuffer() |
double |
getCenterX() |
double |
getCenterZ() |
double |
getDamagePerBlock() |
double |
getSize() |
long |
getTargetRemainingTime() |
double |
getTargetSize() |
int |
getWarningBlocks() |
int |
getWarningTime() |
void |
toTag(CompoundTag tag) |
private final double centerX
private final double centerZ
private final double damagePerBlock
private final double buffer
private final int warningBlocks
private final int warningTime
private final double size
private final long targetRemainingTime
private final double targetSize
private Properties(double centerX, double centerZ, double damagePerBlock, double buffer, int warningBlocks, int warningTime, double size, long targetRemainingTime, double targetSize)
private Properties(WorldBorder worldBorder)
public double getCenterX()
public double getCenterZ()
public double getDamagePerBlock()
public double getBuffer()
public int getWarningBlocks()
public int getWarningTime()
public double getSize()
public long getTargetRemainingTime()
public double getTargetSize()
public static WorldBorder.Properties fromDynamic(com.mojang.serialization.DynamicLike<?> dynamicLike, WorldBorder.Properties properties)
public void toTag(CompoundTag tag)