Package net.minecraft.world.border
Class WorldBorder.Serializer
java.lang.Object
net.minecraft.world.border.WorldBorder.Serializer
- 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
ModifierConstructorDescriptionprivate
Serializer
(double p_i231883_1_, double p_i231883_3_, double p_i231883_5_, double p_i231883_7_, int p_i231883_9_, int p_i231883_10_, double p_i231883_11_, long p_i231883_13_, double p_i231883_15_) private
Serializer
(WorldBorder p_i231885_1_) -
Method Summary
Modifier and TypeMethodDescriptiondouble
double
double
double
double
getSize()
double
long
int
int
static WorldBorder.Serializer
read
(com.mojang.serialization.DynamicLike<?> p_235938_0_, WorldBorder.Serializer p_235938_1_) void
write
(CompoundNBT p_235939_1_)
-
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
-
Serializer
private Serializer(double p_i231883_1_, double p_i231883_3_, double p_i231883_5_, double p_i231883_7_, int p_i231883_9_, int p_i231883_10_, double p_i231883_11_, long p_i231883_13_, double p_i231883_15_) -
Serializer
-
-
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.Serializer read(com.mojang.serialization.DynamicLike<?> p_235938_0_, WorldBorder.Serializer p_235938_1_) -
write
-