Package net.minecraft.world.level.border
Class WorldBorder
java.lang.Object
net.minecraft.world.level.border.WorldBorder
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
(package private) class
static class
(package private) class
-
Field Summary
Modifier and TypeFieldDescription(package private) int
private double
private double
private double
private double
static final WorldBorder.Settings
private WorldBorder.BorderExtent
private final List
<BorderChangeListener> static final double
static final double
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(BorderChangeListener p_61930_) void
applySettings
(WorldBorder.Settings p_61932_) clampToBounds
(double p_187570_, double p_187571_, double p_187572_) clampToBounds
(BlockPos p_342374_) clampToBounds
(Vec3 p_345328_) int
double
double
double
double
double
getDistanceToBorder
(double p_61942_, double p_61943_) double
getDistanceToBorder
(Entity p_61926_) long
double
double
protected List
<BorderChangeListener> double
getMaxX()
double
getMaxZ()
double
getMinX()
double
getMinZ()
double
getSize()
int
int
boolean
isInsideCloseToBorder
(Entity p_187567_, AABB p_187568_) boolean
isWithinBounds
(double p_156094_, double p_156095_) boolean
isWithinBounds
(double p_187563_, double p_187564_, double p_187565_) private boolean
isWithinBounds
(double p_342617_, double p_344821_, double p_344911_, double p_344145_) boolean
isWithinBounds
(BlockPos p_61938_) boolean
isWithinBounds
(ChunkPos p_61928_) boolean
isWithinBounds
(AABB p_61936_) boolean
isWithinBounds
(Vec3 p_343899_) void
lerpSizeBetween
(double p_61920_, double p_61921_, long p_61922_) void
removeListener
(BorderChangeListener p_156097_) void
setAbsoluteMaxSize
(int p_61924_) void
setCenter
(double p_61950_, double p_61951_) void
setDamagePerBlock
(double p_61948_) void
setDamageSafeZone
(double p_61940_) void
setSize
(double p_61918_) void
setWarningBlocks
(int p_61953_) void
setWarningTime
(int p_61945_) void
tick()
-
Field Details
-
MAX_SIZE
public static final double MAX_SIZE- See Also:
-
MAX_CENTER_COORDINATE
public static final double MAX_CENTER_COORDINATE- See Also:
-
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
int absoluteMaxSize -
extent
-
DEFAULT_SETTINGS
-
-
Constructor Details
-
WorldBorder
public WorldBorder()
-
-
Method Details
-
isWithinBounds
-
isWithinBounds
-
isWithinBounds
-
isWithinBounds
-
isWithinBounds
private boolean isWithinBounds(double p_342617_, double p_344821_, double p_344911_, double p_344145_) -
isWithinBounds
public boolean isWithinBounds(double p_156094_, double p_156095_) -
isWithinBounds
public boolean isWithinBounds(double p_187563_, double p_187564_, double p_187565_) -
clampToBounds
-
clampToBounds
-
clampToBounds
-
getDistanceToBorder
-
getCollisionShape
-
getDistanceToBorder
public double getDistanceToBorder(double p_61942_, double p_61943_) -
isInsideCloseToBorder
-
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_61950_, double p_61951_) -
getSize
public double getSize() -
getLerpRemainingTime
public long getLerpRemainingTime() -
getLerpTarget
public double getLerpTarget() -
setSize
public void setSize(double p_61918_) -
lerpSizeBetween
public void lerpSizeBetween(double p_61920_, double p_61921_, long p_61922_) -
getListeners
-
addListener
-
removeListener
-
setAbsoluteMaxSize
public void setAbsoluteMaxSize(int p_61924_) -
getAbsoluteMaxSize
public int getAbsoluteMaxSize() -
getDamageSafeZone
public double getDamageSafeZone() -
setDamageSafeZone
public void setDamageSafeZone(double p_61940_) -
getDamagePerBlock
public double getDamagePerBlock() -
setDamagePerBlock
public void setDamagePerBlock(double p_61948_) -
getLerpSpeed
public double getLerpSpeed() -
getWarningTime
public int getWarningTime() -
setWarningTime
public void setWarningTime(int p_61945_) -
getWarningBlocks
public int getWarningBlocks() -
setWarningBlocks
public void setWarningBlocks(int p_61953_) -
tick
public void tick() -
createSettings
-
applySettings
-