Class WorldBorder

java.lang.Object
net.minecraft.world.level.border.WorldBorder

public class WorldBorder extends Object
  • Field Details

    • MAX_SIZE

      public static final double MAX_SIZE
      See Also:
      Constant Field Values
    • listeners

      private final List<BorderChangeListener> 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

      private WorldBorder.BorderExtent extent
    • DEFAULT_SETTINGS

      public static final WorldBorder.Settings DEFAULT_SETTINGS
  • Constructor Details

    • WorldBorder

      public WorldBorder()
  • Method Details

    • isWithinBounds

      public boolean isWithinBounds(BlockPos p_61938_)
    • isWithinBounds

      public boolean isWithinBounds(ChunkPos p_61928_)
    • isWithinBounds

      public boolean isWithinBounds(double p_156094_, double p_156095_)
    • isWithinBounds

      public boolean isWithinBounds(AABB p_61936_)
    • getDistanceToBorder

      public double getDistanceToBorder(Entity p_61926_)
    • getCollisionShape

      public VoxelShape getCollisionShape()
    • getDistanceToBorder

      public double getDistanceToBorder(double p_61942_, double p_61943_)
    • getStatus

      public BorderStatus 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

      protected List<BorderChangeListener> getListeners()
    • addListener

      public void addListener(BorderChangeListener p_61930_)
    • removeListener

      public void removeListener(BorderChangeListener p_156097_)
    • 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

      public WorldBorder.Settings createSettings()
    • applySettings

      public void applySettings(WorldBorder.Settings p_61932_)