Package net.minecraft.world.border
Class WorldBorder
java.lang.Object
net.minecraft.world.border.WorldBorder
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
(package private) class
static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private double
private double
private double
private double
static final WorldBorder.Serializer
private WorldBorder.IBorderInfo
private final List<IBorderListener>
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IBorderListener p_177737_1_) void
applySettings
(WorldBorder.Serializer p_235926_1_) int
double
double
double
double
double
getDistanceToBorder
(double p_177729_1_, double p_177729_3_) double
getDistanceToBorder
(Entity p_177745_1_) long
double
double
protected List<IBorderListener>
double
getMaxX()
double
getMaxZ()
double
getMinX()
double
getMinZ()
double
getSize()
int
int
boolean
isWithinBounds
(AxisAlignedBB p_177743_1_) boolean
isWithinBounds
(BlockPos p_177746_1_) boolean
isWithinBounds
(ChunkPos p_177730_1_) void
lerpSizeBetween
(double p_177738_1_, double p_177738_3_, long p_177738_5_) void
removeListener
(IBorderListener listener) void
setAbsoluteMaxSize
(int p_177725_1_) void
setCenter
(double p_177739_1_, double p_177739_3_) void
setDamagePerBlock
(double p_177744_1_) void
setDamageSafeZone
(double p_177724_1_) void
setSize
(double p_177750_1_) void
setWarningBlocks
(int p_177747_1_) void
setWarningTime
(int p_177723_1_) void
tick()
-
Field Details
-
listeners
-
damagePerBlock
private double damagePerBlock -
damageSafeZone
private double damageSafeZone -
warningTime
private int warningTime -
warningBlocks
private int warningBlocks -
centerX
private double centerX -
centerZ
private double centerZ -
absoluteMaxSize
private int absoluteMaxSize -
extent
-
DEFAULT_SETTINGS
-
-
Constructor Details
-
WorldBorder
public WorldBorder()
-
-
Method Details
-
isWithinBounds
-
isWithinBounds
-
isWithinBounds
-
getDistanceToBorder
-
getCollisionShape
-
getDistanceToBorder
public double getDistanceToBorder(double p_177729_1_, double p_177729_3_) -
getStatus
-
getMinX
public double getMinX() -
getMinZ
public double getMinZ() -
getMaxX
public double getMaxX() -
getMaxZ
public double getMaxZ() -
getCenterX
public double getCenterX() -
getCenterZ
public double getCenterZ() -
setCenter
public void setCenter(double p_177739_1_, double p_177739_3_) -
getSize
public double getSize() -
getLerpRemainingTime
public long getLerpRemainingTime() -
getLerpTarget
public double getLerpTarget() -
setSize
public void setSize(double p_177750_1_) -
lerpSizeBetween
public void lerpSizeBetween(double p_177738_1_, double p_177738_3_, long p_177738_5_) -
getListeners
-
addListener
-
removeListener
-
setAbsoluteMaxSize
public void setAbsoluteMaxSize(int p_177725_1_) -
getAbsoluteMaxSize
public int getAbsoluteMaxSize() -
getDamageSafeZone
public double getDamageSafeZone() -
setDamageSafeZone
public void setDamageSafeZone(double p_177724_1_) -
getDamagePerBlock
public double getDamagePerBlock() -
setDamagePerBlock
public void setDamagePerBlock(double p_177744_1_) -
getLerpSpeed
public double getLerpSpeed() -
getWarningTime
public int getWarningTime() -
setWarningTime
public void setWarningTime(int p_177723_1_) -
getWarningBlocks
public int getWarningBlocks() -
setWarningBlocks
public void setWarningBlocks(int p_177747_1_) -
tick
public void tick() -
createSettings
-
applySettings
-