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 doublecenterXprivate doublecenterZprivate doubledamagePerBlockprivate doublesafeZoneprivate doublesizeprivate doublesizeLerpTargetprivate longsizeLerpTimeprivate intwarningBlocksprivate intwarningTime
-
Constructor Summary
Constructors Modifier Constructor Description privateSerializer(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_)privateSerializer(WorldBorder p_i231885_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetCenterX()doublegetCenterZ()doublegetDamagePerBlock()doublegetSafeZone()doublegetSize()doublegetSizeLerpTarget()longgetSizeLerpTime()intgetWarningBlocks()intgetWarningTime()static WorldBorder.Serializerread(com.mojang.serialization.DynamicLike<?> p_235938_0_, WorldBorder.Serializer p_235938_1_)voidwrite(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_)
-
-