Package net.minecraft.world.border
Class WorldBorder.Serializer
- java.lang.Object
-
- net.minecraft.world.border.WorldBorder.Serializer
-
- Enclosing class:
- WorldBorder
public static class WorldBorder.Serializer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double
centerX
private double
centerZ
private double
damagePerBlock
private double
safeZone
private double
size
private double
sizeLerpTarget
private long
sizeLerpTime
private int
warningBlocks
private int
warningTime
-
Constructor Summary
Constructors Modifier Constructor Description 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_)
private
Serializer(WorldBorder p_i231885_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getCenterX()
double
getCenterZ()
double
getDamagePerBlock()
double
getSafeZone()
double
getSize()
double
getSizeLerpTarget()
long
getSizeLerpTime()
int
getWarningBlocks()
int
getWarningTime()
static WorldBorder.Serializer
read(com.mojang.serialization.DynamicLike<?> p_235938_0_, WorldBorder.Serializer p_235938_1_)
void
write(CompoundNBT p_235939_1_)
-
-
-
Field Detail
-
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 Detail
-
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
private Serializer(WorldBorder p_i231885_1_)
-
-
Method Detail
-
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
public void write(CompoundNBT p_235939_1_)
-
-