net.minecraft.world.border

public class WorldBorder

extends PersistentState

net.minecraft.world.level.border.WorldBorder
net.minecraft.class_2784
net.minecraft.world.border.WorldBorder

Field summary

Modifier and TypeField
public static final double
MAX_SIZE
field_33643
STATIC_AREA_SIZE
public static final double
MAX_CENTER_COORDINATE
field_36191
MAX_CENTER_COORDINATES
public static final com.mojang.serialization.Codec<WorldBorder>
CODEC
field_62536
CODEC
public static final PersistentStateType<WorldBorder>
TYPE
field_62537
TYPE
private final WorldBorder$Properties
settings
field_63953
properties
private boolean
initialized
field_63954
initialized
private final List<WorldBorderListener>
listeners
field_12730
listeners
private double
damagePerBlock
field_12733
damagePerBlock
private double
safeZone
field_12731
safeZone
private int
warningTime
field_12735
warningTime
private int
warningBlocks
field_12734
warningBlocks
private double
centerX
field_12738
centerX
private double
centerZ
field_12737
centerZ
private int
absoluteMaxSize
field_12732
maxRadius
private WorldBorder$Area
extent
field_12736
area

Constructor summary

ModifierConstructor
public ()
public (WorldBorder$Properties properties)

Method summary

Modifier and TypeMethod
public boolean
isWithinBounds(BlockPos pos)
method_11952(class_2338 arg0)
contains(BlockPos pos)
public boolean
isWithinBounds(Vec3 pos)
method_61115(class_243 arg0)
contains(Vec3d pos)
public boolean
isWithinBounds(ChunkPos pos)
method_11951(class_1923 arg0)
contains(ChunkPos chunkPos)
public boolean
isWithinBounds(AABB aabb)
method_11966(class_238 arg0)
contains(Box box)
private boolean
isWithinBounds(double minX, double minZ, double maxX, double maxZ)
method_61114(double arg0, double arg1, double arg2, double arg3)
contains(double minX, double minZ, double maxX, double maxZ)
public boolean
isWithinBounds(double x, double z)
method_35317(double arg0, double arg1)
contains(double x, double z)
public boolean
isWithinBounds(double x, double z, double margin)
method_39458(double arg0, double arg1, double arg2)
contains(double x, double z, double margin)
public BlockPos
clampToBounds(BlockPos position)
method_61117(class_2338 arg0)
clampFloored(BlockPos pos)
public BlockPos
clampToBounds(Vec3 position)
method_61116(class_243 arg0)
clampFloored(Vec3d pos)
public BlockPos
clampToBounds(double x, double y, double z)
method_39538(double arg0, double arg1, double arg2)
clampFloored(double x, double y, double z)
public Vec3d
clampVec3ToBound(Vec3 position)
method_61770(class_243 arg0)
clamp(Vec3d pos)
public Vec3d
clampVec3ToBound(double x, double y, double z)
method_61769(double arg0, double arg1, double arg2)
clamp(double x, double y, double z)
public double
getDistanceToBorder(Entity entity)
method_11979(class_1297 arg0)
getDistanceInsideBorder(Entity entity)
public VoxelShape
getCollisionShape()
method_17903()
asVoxelShape()
public double
getDistanceToBorder(double x, double z)
method_11961(double arg0, double arg1)
getDistanceInsideBorder(double x, double z)
public boolean
isInsideCloseToBorder(Entity source, AABB boundingBox)
method_39459(class_1297 arg0, class_238 arg1)
canCollide(Entity entity, Box box)
public WorldBorderStage
getStatus()
method_11968()
getStage()
public double
getMinX()
method_11976()
getBoundWest()
public double
getMinX(float deltaPartialTick)
method_75884(float arg0)
getBoundWest(float tickProgress)
public double
getMinZ()
method_11958()
getBoundNorth()
public double
getMinZ(float deltaPartialTick)
method_75886(float arg0)
getBoundNorth(float tickProgress)
public double
getMaxX()
method_11963()
getBoundEast()
public double
getMaxX(float deltaPartialTick)
method_75887(float arg0)
getBoundEast(float tickProgress)
public double
getMaxZ()
method_11977()
getBoundSouth()
public double
getMaxZ(float deltaPartialTick)
method_75888(float arg0)
getBoundSouth(float tickProgress)
public double
getCenterX()
method_11964()
getCenterX()
public double
getCenterZ()
method_11980()
getCenterZ()
public void
setCenter(double x, double z)
method_11978(double arg0, double arg1)
setCenter(double x, double z)
public double
getSize()
method_11965()
getSize()
public long
getLerpTime()
method_11962()
getSizeLerpTime()
public double
getLerpTarget()
method_11954()
getSizeLerpTarget()
public void
setSize(double size)
method_11969(double arg0)
setSize(double size)
public void
lerpSizeBetween(double from, double to, long ticks, long gameTime)
method_11957(double arg0, double arg1, long arg2, long arg3)
interpolateSize(double fromSize, double toSize, long timeDuration, long timeStart)
protected List<WorldBorderListener>
getListeners()
method_11970()
getListeners()
public void
addListener(BorderChangeListener listener)
method_11983(class_2780 arg0)
addListener(WorldBorderListener listener)
public void
removeListener(BorderChangeListener listener)
method_35318(class_2780 arg0)
removeListener(WorldBorderListener listener)
public void
setAbsoluteMaxSize(int absoluteMaxSize)
method_11973(int arg0)
setMaxRadius(int maxRadius)
public int
getAbsoluteMaxSize()
method_11959()
getMaxRadius()
public double
getSafeZone()
method_11971()
getSafeZone()
public void
setSafeZone(double safeZone)
method_11981(double arg0)
setSafeZone(double safeZone)
public double
getDamagePerBlock()
method_11953()
getDamagePerBlock()
public void
setDamagePerBlock(double damagePerBlock)
method_11955(double arg0)
setDamagePerBlock(double damagePerBlock)
public double
getLerpSpeed()
method_11974()
getShrinkingSpeed()
public int
getWarningTime()
method_11956()
getWarningTime()
public void
setWarningTime(int warningTime)
method_11975(int arg0)
setWarningTime(int warningTime)
public int
getWarningBlocks()
method_11972()
getWarningBlocks()
public void
setWarningBlocks(int warningBlocks)
method_11967(int arg0)
setWarningBlocks(int warningBlocks)
public void
tick()
method_11982()
tick()
public void
applyInitialSettings(long gameTime)
method_75885(long arg0)
ensureInitialized(long time)