Package net.minecraft.world.border
Class WorldBorder.Properties
java.lang.Object
net.minecraft.world.border.WorldBorder.Properties
- Enclosing class:
- WorldBorder
public static class WorldBorder.Properties extends Object
-
Field Summary
Fields Modifier and Type Field Description private doublebufferprivate doublecenterXprivate doublecenterZprivate doubledamagePerBlockprivate doublesizeprivate longtargetRemainingTimeprivate doubletargetSizeprivate intwarningBlocksprivate intwarningTime -
Constructor Summary
Constructors Modifier Constructor Description privateProperties(double centerX, double centerZ, double damagePerBlock, double buffer, int warningBlocks, int warningTime, double size, long targetRemainingTime, double targetSize)privateProperties(WorldBorder worldBorder) -
Method Summary
Modifier and Type Method Description static WorldBorder.PropertiesfromDynamic(com.mojang.serialization.DynamicLike<?> dynamicLike, WorldBorder.Properties properties)doublegetBuffer()doublegetCenterX()doublegetCenterZ()doublegetDamagePerBlock()doublegetSize()longgetTargetRemainingTime()doublegetTargetSize()intgetWarningBlocks()intgetWarningTime()voidtoTag(CompoundTag tag)
-
Field Details
-
centerX
private final double centerX -
centerZ
private final double centerZ -
damagePerBlock
private final double damagePerBlock -
buffer
private final double buffer -
warningBlocks
private final int warningBlocks -
warningTime
private final int warningTime -
size
private final double size -
targetRemainingTime
private final long targetRemainingTime -
targetSize
private final double targetSize
-
-
Constructor Details
-
Properties
private Properties(double centerX, double centerZ, double damagePerBlock, double buffer, int warningBlocks, int warningTime, double size, long targetRemainingTime, double targetSize) -
Properties
-
-
Method Details
-
getCenterX
public double getCenterX() -
getCenterZ
public double getCenterZ() -
getDamagePerBlock
public double getDamagePerBlock() -
getBuffer
public double getBuffer() -
getWarningBlocks
public int getWarningBlocks() -
getWarningTime
public int getWarningTime() -
getSize
public double getSize() -
getTargetRemainingTime
public long getTargetRemainingTime() -
getTargetSize
public double getTargetSize() -
fromDynamic
public static WorldBorder.Properties fromDynamic(com.mojang.serialization.DynamicLike<?> dynamicLike, WorldBorder.Properties properties) -
toTag
-