Package net.minecraft.world.border
Class WorldBorder
java.lang.Object
net.minecraft.world.border.WorldBorder
public class WorldBorder extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static interface
WorldBorder.Area
(package private) class
WorldBorder.MovingArea
static class
WorldBorder.Properties
(package private) class
WorldBorder.StaticArea
-
Field Summary
Fields Modifier and Type Field Description private WorldBorder.Area
area
private double
buffer
private double
centerX
private double
centerZ
private double
damagePerBlock
static WorldBorder.Properties
DEFAULT_BORDER
private List<WorldBorderListener>
listeners
private int
maxWorldBorderRadius
private int
warningBlocks
private int
warningTime
-
Constructor Summary
Constructors Constructor Description WorldBorder()
-
Method Summary
-
Field Details
-
DEFAULT_BORDER
-
listeners
-
damagePerBlock
private double damagePerBlock -
buffer
private double buffer -
warningTime
private int warningTime -
warningBlocks
private int warningBlocks -
centerX
private double centerX -
centerZ
private double centerZ -
maxWorldBorderRadius
private int maxWorldBorderRadius -
area
-
-
Constructor Details
-
WorldBorder
public WorldBorder()
-
-
Method Details
-
contains
-
contains
-
contains
-
getDistanceInsideBorder
-
asVoxelShape
-
getDistanceInsideBorder
public double getDistanceInsideBorder(double x, double z) -
getStage
-
getBoundWest
public double getBoundWest() -
getBoundNorth
public double getBoundNorth() -
getBoundEast
public double getBoundEast() -
getBoundSouth
public double getBoundSouth() -
getCenterX
public double getCenterX() -
getCenterZ
public double getCenterZ() -
setCenter
public void setCenter(double x, double z) -
getSize
public double getSize() -
getTargetRemainingTime
public long getTargetRemainingTime() -
getTargetSize
public double getTargetSize() -
setSize
public void setSize(double size) -
interpolateSize
public void interpolateSize(double fromSize, double toSize, long time) -
getListeners
-
addListener
-
setMaxWorldBorderRadius
public void setMaxWorldBorderRadius(int radius) -
getMaxWorldBorderRadius
public int getMaxWorldBorderRadius() -
getBuffer
public double getBuffer() -
setBuffer
public void setBuffer(double buffer) -
getDamagePerBlock
public double getDamagePerBlock() -
setDamagePerBlock
public void setDamagePerBlock(double damagePerBlock) -
getShrinkingSpeed
@Environment(CLIENT) public double getShrinkingSpeed() -
getWarningTime
public int getWarningTime() -
setWarningTime
public void setWarningTime(int warningTime) -
getWarningBlocks
public int getWarningBlocks() -
setWarningBlocks
public void setWarningBlocks(int warningBlocks) -
tick
public void tick() -
write
-
load
-