类 WorldBorder.Settings
java.lang.Object
net.minecraft.world.level.border.WorldBorder.Settings
- 封闭类:
- WorldBorder
-
字段概要
字段修饰符和类型字段说明private 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
-
构造器概要
构造器构造器说明Settings
(double pCenterX, double pCenterZ, double pDamagePerBlock, double pSafeZone, int pWarningBlocks, int pWarningTime, double pSize, long pSizeLerpTime, double pSizeLerpTarget) Settings
(WorldBorder pBorder) -
方法概要
修饰符和类型方法说明double
double
double
double
double
getSize()
double
long
int
int
static WorldBorder.Settings
read
(com.mojang.serialization.DynamicLike<?> pDynamic, WorldBorder.Settings pDefaultValue) void
write
(CompoundTag pNbt)
-
字段详细资料
-
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
-
-
构造器详细资料
-
Settings
Settings(double pCenterX, double pCenterZ, double pDamagePerBlock, double pSafeZone, int pWarningBlocks, int pWarningTime, double pSize, long pSizeLerpTime, double pSizeLerpTarget) -
Settings
Settings(WorldBorder pBorder)
-
-
方法详细资料
-
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
-