Class WorldBorder


  • public class WorldBorder
    extends java.lang.Object
    • Field Detail

      • 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
    • Constructor Detail

      • WorldBorder

        public WorldBorder()
    • Method Detail

      • isWithinBounds

        public boolean isWithinBounds​(BlockPos p_177746_1_)
      • isWithinBounds

        public boolean isWithinBounds​(ChunkPos p_177730_1_)
      • isWithinBounds

        public boolean isWithinBounds​(AxisAlignedBB p_177743_1_)
      • getDistanceToBorder

        public double getDistanceToBorder​(Entity p_177745_1_)
      • getCollisionShape

        public VoxelShape getCollisionShape()
      • getDistanceToBorder

        public double getDistanceToBorder​(double p_177729_1_,
                                          double p_177729_3_)
      • 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_)
      • removeListener

        public void removeListener​(IBorderListener listener)
      • 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()