Package net.minecraft.world.border
Class WorldBorder
java.lang.Object
net.minecraft.world.border.WorldBorder
- Mappings:
- Namespace - Name - named - net/minecraft/world/border/WorldBorder- intermediary - net/minecraft/class_2784- official - dyo
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate classstatic classprivate class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate WorldBorder.Areaprivate doubleprivate doubleprivate doublestatic final WorldBorder.Propertiesprivate final List<WorldBorderListener> static final double(package private) intprivate doublestatic final doubleprivate intprivate int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddListener(WorldBorderListener listener) booleancanCollide(Entity entity, Box box) clamp(double x, double y, double z) clampFloored(double x, double y, double z) clampFloored(BlockPos pos) clampFloored(Vec3d pos) booleancontains(double x, double z) booleancontains(double x, double z, double margin) private booleancontains(double minX, double minZ, double maxX, double maxZ) booleanbooleanbooleanbooleandoubledoubledoubledoubledoubledoubledoubleReturns the damage increase per block beyond this border, in hearts.doublegetDistanceInsideBorder(double x, double z) doublegetDistanceInsideBorder(Entity entity) protected List<WorldBorderListener> intReturns the maximum radius of this border, in blocks.doubleReturns the safe zone of this border.doubledoublegetSize()doublelonggetStage()intReturns the warning distance of this border, in blocks.intReturns the warning time of this border, in ticks.voidinterpolateSize(double fromSize, double toSize, long time) voidload(WorldBorder.Properties properties) voidremoveListener(WorldBorderListener listener) voidsetCenter(double x, double z) Sets thexandzcoordinates of the center of this border, and notifies its area and all listeners.voidsetDamagePerBlock(double damagePerBlock) Sets the damage per block of this border and notifies all listeners.voidsetMaxRadius(int maxRadius) Sets the maximum radius of this border and notifies its area.voidsetSafeZone(double safeZone) Sets the safe zone of this border and notifies all listeners.voidsetSize(double size) Sets the area of this border to a static area with the givensize, and notifies all listeners.voidsetWarningBlocks(int warningBlocks) Sets the warning blocks of this border and notifies all listeners.voidsetWarningTime(int warningTime) Sets the warning time of this border and notifies all listeners.voidtick()write()
- 
Field Details- 
STATIC_AREA_SIZEpublic static final double STATIC_AREA_SIZE- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - STATIC_AREA_SIZE- Lnet/minecraft/world/border/WorldBorder;STATIC_AREA_SIZE:D- intermediary - field_33643- Lnet/minecraft/class_2784;field_33643:D- official - b- Ldyo;b:D
 
- 
MAX_CENTER_COORDINATESpublic static final double MAX_CENTER_COORDINATES- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_CENTER_COORDINATES- Lnet/minecraft/world/border/WorldBorder;MAX_CENTER_COORDINATES:D- intermediary - field_36191- Lnet/minecraft/class_2784;field_36191:D- official - c- Ldyo;c:D
 
- 
DEFAULT_BORDER- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT_BORDER- Lnet/minecraft/world/border/WorldBorder;DEFAULT_BORDER:Lnet/minecraft/world/border/WorldBorder$Properties;- intermediary - field_24122- Lnet/minecraft/class_2784;field_24122:Lnet/minecraft/class_2784$class_5200;- official - d- Ldyo;d:Ldyo$c;
 
- 
listeners- Mappings:
- Namespace - Name - Mixin selector - named - listeners- Lnet/minecraft/world/border/WorldBorder;listeners:Ljava/util/List;- intermediary - field_12730- Lnet/minecraft/class_2784;field_12730:Ljava/util/List;- official - a- Ldyo;a:Ljava/util/List;
 
- 
damagePerBlockprivate double damagePerBlock- Mappings:
- Namespace - Name - Mixin selector - named - damagePerBlock- Lnet/minecraft/world/border/WorldBorder;damagePerBlock:D- intermediary - field_12733- Lnet/minecraft/class_2784;field_12733:D- official - e- Ldyo;e:D
 
- 
safeZoneprivate double safeZone- Mappings:
- Namespace - Name - Mixin selector - named - safeZone- Lnet/minecraft/world/border/WorldBorder;safeZone:D- intermediary - field_12731- Lnet/minecraft/class_2784;field_12731:D- official - f- Ldyo;f:D
 
- 
warningTimeprivate int warningTime- Mappings:
- Namespace - Name - Mixin selector - named - warningTime- Lnet/minecraft/world/border/WorldBorder;warningTime:I- intermediary - field_12735- Lnet/minecraft/class_2784;field_12735:I- official - g- Ldyo;g:I
 
- 
warningBlocksprivate int warningBlocks- Mappings:
- Namespace - Name - Mixin selector - named - warningBlocks- Lnet/minecraft/world/border/WorldBorder;warningBlocks:I- intermediary - field_12734- Lnet/minecraft/class_2784;field_12734:I- official - h- Ldyo;h:I
 
- 
centerXprivate double centerX- Mappings:
- Namespace - Name - Mixin selector - named - centerX- Lnet/minecraft/world/border/WorldBorder;centerX:D- intermediary - field_12738- Lnet/minecraft/class_2784;field_12738:D- official - i- Ldyo;i:D
 
- 
centerZprivate double centerZ- Mappings:
- Namespace - Name - Mixin selector - named - centerZ- Lnet/minecraft/world/border/WorldBorder;centerZ:D- intermediary - field_12737- Lnet/minecraft/class_2784;field_12737:D- official - j- Ldyo;j:D
 
- 
maxRadiusint maxRadius- Mappings:
- Namespace - Name - Mixin selector - named - maxRadius- Lnet/minecraft/world/border/WorldBorder;maxRadius:I- intermediary - field_12732- Lnet/minecraft/class_2784;field_12732:I- official - k- Ldyo;k:I
 
- 
area- Mappings:
- Namespace - Name - Mixin selector - named - area- Lnet/minecraft/world/border/WorldBorder;area:Lnet/minecraft/world/border/WorldBorder$Area;- intermediary - field_12736- Lnet/minecraft/class_2784;field_12736:Lnet/minecraft/class_2784$class_2785;- official - l- Ldyo;l:Ldyo$a;
 
 
- 
- 
Constructor Details- 
WorldBorderpublic WorldBorder()
 
- 
- 
Method Details- 
contains- Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/BlockPos;)Z- intermediary - method_11952- Lnet/minecraft/class_2784;method_11952(Lnet/minecraft/class_2338;)Z- official - a- Ldyo;a(Lji;)Z
 
- 
contains- Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/Vec3d;)Z- intermediary - method_61115- Lnet/minecraft/class_2784;method_61115(Lnet/minecraft/class_243;)Z- official - a- Ldyo;a(Lfbb;)Z
 
- 
contains- Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/ChunkPos;)Z- intermediary - method_11951- Lnet/minecraft/class_2784;method_11951(Lnet/minecraft/class_1923;)Z- official - a- Ldyo;a(Ldfp;)Z
 
- 
contains- Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/Box;)Z- intermediary - method_11966- Lnet/minecraft/class_2784;method_11966(Lnet/minecraft/class_238;)Z- official - a- Ldyo;a(Lfaw;)Z
 
- 
containsprivate boolean contains(double minX, double minZ, double maxX, double maxZ) - Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(DDDD)Z- intermediary - method_61114- Lnet/minecraft/class_2784;method_61114(DDDD)Z- official - a- Ldyo;a(DDDD)Z
 
- 
containspublic boolean contains(double x, double z) - Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(DD)Z- intermediary - method_35317- Lnet/minecraft/class_2784;method_35317(DD)Z- official - a- Ldyo;a(DD)Z
 
- 
containspublic boolean contains(double x, double z, double margin) - Mappings:
- Namespace - Name - Mixin selector - named - contains- Lnet/minecraft/world/border/WorldBorder;contains(DDD)Z- intermediary - method_39458- Lnet/minecraft/class_2784;method_39458(DDD)Z- official - a- Ldyo;a(DDD)Z
 
- 
clampFloored- Mappings:
- Namespace - Name - Mixin selector - named - clampFloored- Lnet/minecraft/world/border/WorldBorder;clampFloored(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_61117- Lnet/minecraft/class_2784;method_61117(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;- official - b- Ldyo;b(Lji;)Lji;
 
- 
clampFloored- Mappings:
- Namespace - Name - Mixin selector - named - clampFloored- Lnet/minecraft/world/border/WorldBorder;clampFloored(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/BlockPos;- intermediary - method_61116- Lnet/minecraft/class_2784;method_61116(Lnet/minecraft/class_243;)Lnet/minecraft/class_2338;- official - b- Ldyo;b(Lfbb;)Lji;
 
- 
clampFloored- Mappings:
- Namespace - Name - Mixin selector - named - clampFloored- Lnet/minecraft/world/border/WorldBorder;clampFloored(DDD)Lnet/minecraft/util/math/BlockPos;- intermediary - method_39538- Lnet/minecraft/class_2784;method_39538(DDD)Lnet/minecraft/class_2338;- official - b- Ldyo;b(DDD)Lji;
 
- 
clamp- Mappings:
- Namespace - Name - Mixin selector - named - clamp- Lnet/minecraft/world/border/WorldBorder;clamp(Lnet/minecraft/util/math/Vec3d;)Lnet/minecraft/util/math/Vec3d;- intermediary - method_61770- Lnet/minecraft/class_2784;method_61770(Lnet/minecraft/class_243;)Lnet/minecraft/class_243;- official - c- Ldyo;c(Lfbb;)Lfbb;
 
- 
clamp- Mappings:
- Namespace - Name - Mixin selector - named - clamp- Lnet/minecraft/world/border/WorldBorder;clamp(DDD)Lnet/minecraft/util/math/Vec3d;- intermediary - method_61769- Lnet/minecraft/class_2784;method_61769(DDD)Lnet/minecraft/class_243;- official - c- Ldyo;c(DDD)Lfbb;
 
- 
getDistanceInsideBorder- Mappings:
- Namespace - Name - Mixin selector - named - getDistanceInsideBorder- Lnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(Lnet/minecraft/entity/Entity;)D- intermediary - method_11979- Lnet/minecraft/class_2784;method_11979(Lnet/minecraft/class_1297;)D- official - a- Ldyo;a(Lbum;)D
 
- 
asVoxelShape- Mappings:
- Namespace - Name - Mixin selector - named - asVoxelShape- Lnet/minecraft/world/border/WorldBorder;asVoxelShape()Lnet/minecraft/util/shape/VoxelShape;- intermediary - method_17903- Lnet/minecraft/class_2784;method_17903()Lnet/minecraft/class_265;- official - c- Ldyo;c()Lfbv;
 
- 
getDistanceInsideBorderpublic double getDistanceInsideBorder(double x, double z) - Mappings:
- Namespace - Name - Mixin selector - named - getDistanceInsideBorder- Lnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(DD)D- intermediary - method_11961- Lnet/minecraft/class_2784;method_11961(DD)D- official - b- Ldyo;b(DD)D
 
- 
canCollide- Mappings:
- Namespace - Name - Mixin selector - named - canCollide- Lnet/minecraft/world/border/WorldBorder;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z- intermediary - method_39459- Lnet/minecraft/class_2784;method_39459(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z- official - a- Ldyo;a(Lbum;Lfaw;)Z
 
- 
getStage- Mappings:
- Namespace - Name - Mixin selector - named - getStage- Lnet/minecraft/world/border/WorldBorder;getStage()Lnet/minecraft/world/border/WorldBorderStage;- intermediary - method_11968- Lnet/minecraft/class_2784;method_11968()Lnet/minecraft/class_2789;- official - d- Ldyo;d()Ldyn;
 
- 
getBoundWestpublic double getBoundWest()- Mappings:
- Namespace - Name - Mixin selector - named - getBoundWest- Lnet/minecraft/world/border/WorldBorder;getBoundWest()D- intermediary - method_11976- Lnet/minecraft/class_2784;method_11976()D- official - e- Ldyo;e()D
 
- 
getBoundNorthpublic double getBoundNorth()- Mappings:
- Namespace - Name - Mixin selector - named - getBoundNorth- Lnet/minecraft/world/border/WorldBorder;getBoundNorth()D- intermediary - method_11958- Lnet/minecraft/class_2784;method_11958()D- official - f- Ldyo;f()D
 
- 
getBoundEastpublic double getBoundEast()- Mappings:
- Namespace - Name - Mixin selector - named - getBoundEast- Lnet/minecraft/world/border/WorldBorder;getBoundEast()D- intermediary - method_11963- Lnet/minecraft/class_2784;method_11963()D- official - g- Ldyo;g()D
 
- 
getBoundSouthpublic double getBoundSouth()- Mappings:
- Namespace - Name - Mixin selector - named - getBoundSouth- Lnet/minecraft/world/border/WorldBorder;getBoundSouth()D- intermediary - method_11977- Lnet/minecraft/class_2784;method_11977()D- official - h- Ldyo;h()D
 
- 
getCenterXpublic double getCenterX()- Mappings:
- Namespace - Name - Mixin selector - named - getCenterX- Lnet/minecraft/world/border/WorldBorder;getCenterX()D- intermediary - method_11964- Lnet/minecraft/class_2784;method_11964()D- official - a- Ldyo;a()D
 
- 
getCenterZpublic double getCenterZ()- Mappings:
- Namespace - Name - Mixin selector - named - getCenterZ- Lnet/minecraft/world/border/WorldBorder;getCenterZ()D- intermediary - method_11980- Lnet/minecraft/class_2784;method_11980()D- official - b- Ldyo;b()D
 
- 
setCenterpublic void setCenter(double x, double z) Sets thexandzcoordinates of the center of this border, and notifies its area and all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setCenter- Lnet/minecraft/world/border/WorldBorder;setCenter(DD)V- intermediary - method_11978- Lnet/minecraft/class_2784;method_11978(DD)V- official - c- Ldyo;c(DD)V
 
- 
getSizepublic double getSize()- Mappings:
- Namespace - Name - Mixin selector - named - getSize- Lnet/minecraft/world/border/WorldBorder;getSize()D- intermediary - method_11965- Lnet/minecraft/class_2784;method_11965()D- official - i- Ldyo;i()D
 
- 
getSizeLerpTimepublic long getSizeLerpTime()- Mappings:
- Namespace - Name - Mixin selector - named - getSizeLerpTime- Lnet/minecraft/world/border/WorldBorder;getSizeLerpTime()J- intermediary - method_11962- Lnet/minecraft/class_2784;method_11962()J- official - j- Ldyo;j()J
 
- 
getSizeLerpTargetpublic double getSizeLerpTarget()- Mappings:
- Namespace - Name - Mixin selector - named - getSizeLerpTarget- Lnet/minecraft/world/border/WorldBorder;getSizeLerpTarget()D- intermediary - method_11954- Lnet/minecraft/class_2784;method_11954()D- official - k- Ldyo;k()D
 
- 
setSizepublic void setSize(double size) Sets the area of this border to a static area with the givensize, and notifies all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setSize- Lnet/minecraft/world/border/WorldBorder;setSize(D)V- intermediary - method_11969- Lnet/minecraft/class_2784;method_11969(D)V- official - a- Ldyo;a(D)V
 
- 
interpolateSizepublic void interpolateSize(double fromSize, double toSize, long time) - Mappings:
- Namespace - Name - Mixin selector - named - interpolateSize- Lnet/minecraft/world/border/WorldBorder;interpolateSize(DDJ)V- intermediary - method_11957- Lnet/minecraft/class_2784;method_11957(DDJ)V- official - a- Ldyo;a(DDJ)V
 
- 
getListeners- Mappings:
- Namespace - Name - Mixin selector - named - getListeners- Lnet/minecraft/world/border/WorldBorder;getListeners()Ljava/util/List;- intermediary - method_11970- Lnet/minecraft/class_2784;method_11970()Ljava/util/List;- official - l- Ldyo;l()Ljava/util/List;
 
- 
addListener- Mappings:
- Namespace - Name - Mixin selector - named - addListener- Lnet/minecraft/world/border/WorldBorder;addListener(Lnet/minecraft/world/border/WorldBorderListener;)V- intermediary - method_11983- Lnet/minecraft/class_2784;method_11983(Lnet/minecraft/class_2780;)V- official - a- Ldyo;a(Ldym;)V
 
- 
removeListener- Mappings:
- Namespace - Name - Mixin selector - named - removeListener- Lnet/minecraft/world/border/WorldBorder;removeListener(Lnet/minecraft/world/border/WorldBorderListener;)V- intermediary - method_35318- Lnet/minecraft/class_2784;method_35318(Lnet/minecraft/class_2780;)V- official - b- Ldyo;b(Ldym;)V
 
- 
setMaxRadiuspublic void setMaxRadius(int maxRadius) Sets the maximum radius of this border and notifies its area.- Mappings:
- Namespace - Name - Mixin selector - named - setMaxRadius- Lnet/minecraft/world/border/WorldBorder;setMaxRadius(I)V- intermediary - method_11973- Lnet/minecraft/class_2784;method_11973(I)V- official - a- Ldyo;a(I)V
 
- 
getMaxRadiuspublic int getMaxRadius()Returns the maximum radius of this border, in blocks.The default value is 29999984. - Mappings:
- Namespace - Name - Mixin selector - named - getMaxRadius- Lnet/minecraft/world/border/WorldBorder;getMaxRadius()I- intermediary - method_11959- Lnet/minecraft/class_2784;method_11959()I- official - m- Ldyo;m()I
 
- 
getSafeZonepublic double getSafeZone()Returns the safe zone of this border.The default value is 5.0. - Mappings:
- Namespace - Name - Mixin selector - named - getSafeZone- Lnet/minecraft/world/border/WorldBorder;getSafeZone()D- intermediary - method_11971- Lnet/minecraft/class_2784;method_11971()D- official - n- Ldyo;n()D
 
- 
setSafeZonepublic void setSafeZone(double safeZone) Sets the safe zone of this border and notifies all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setSafeZone- Lnet/minecraft/world/border/WorldBorder;setSafeZone(D)V- intermediary - method_11981- Lnet/minecraft/class_2784;method_11981(D)V- official - b- Ldyo;b(D)V
 
- 
getDamagePerBlockpublic double getDamagePerBlock()Returns the damage increase per block beyond this border, in hearts.Once an entity goes beyond the border and the safe zone, damage will be applied depending on the distance traveled multiplied by this damage increase. The default value is 0.2. - See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - getDamagePerBlock- Lnet/minecraft/world/border/WorldBorder;getDamagePerBlock()D- intermediary - method_11953- Lnet/minecraft/class_2784;method_11953()D- official - o- Ldyo;o()D
 
- 
setDamagePerBlockpublic void setDamagePerBlock(double damagePerBlock) Sets the damage per block of this border and notifies all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setDamagePerBlock- Lnet/minecraft/world/border/WorldBorder;setDamagePerBlock(D)V- intermediary - method_11955- Lnet/minecraft/class_2784;method_11955(D)V- official - c- Ldyo;c(D)V
 
- 
getShrinkingSpeedpublic double getShrinkingSpeed()- Mappings:
- Namespace - Name - Mixin selector - named - getShrinkingSpeed- Lnet/minecraft/world/border/WorldBorder;getShrinkingSpeed()D- intermediary - method_11974- Lnet/minecraft/class_2784;method_11974()D- official - p- Ldyo;p()D
 
- 
getWarningTimepublic int getWarningTime()Returns the warning time of this border, in ticks.Once a player goes beyond the border, this is the time before a message is displayed to them. The default value is 15. - Mappings:
- Namespace - Name - Mixin selector - named - getWarningTime- Lnet/minecraft/world/border/WorldBorder;getWarningTime()I- intermediary - method_11956- Lnet/minecraft/class_2784;method_11956()I- official - q- Ldyo;q()I
 
- 
setWarningTimepublic void setWarningTime(int warningTime) Sets the warning time of this border and notifies all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setWarningTime- Lnet/minecraft/world/border/WorldBorder;setWarningTime(I)V- intermediary - method_11975- Lnet/minecraft/class_2784;method_11975(I)V- official - b- Ldyo;b(I)V
 
- 
getWarningBlockspublic int getWarningBlocks()Returns the warning distance of this border, in blocks.When an entity approaches the border, this is the distance from which a warning will be displayed. The default value is 5. - Mappings:
- Namespace - Name - Mixin selector - named - getWarningBlocks- Lnet/minecraft/world/border/WorldBorder;getWarningBlocks()I- intermediary - method_11972- Lnet/minecraft/class_2784;method_11972()I- official - r- Ldyo;r()I
 
- 
setWarningBlockspublic void setWarningBlocks(int warningBlocks) Sets the warning blocks of this border and notifies all listeners.- Mappings:
- Namespace - Name - Mixin selector - named - setWarningBlocks- Lnet/minecraft/world/border/WorldBorder;setWarningBlocks(I)V- intermediary - method_11967- Lnet/minecraft/class_2784;method_11967(I)V- official - c- Ldyo;c(I)V
 
- 
tickpublic void tick()- Mappings:
- Namespace - Name - Mixin selector - named - tick- Lnet/minecraft/world/border/WorldBorder;tick()V- intermediary - method_11982- Lnet/minecraft/class_2784;method_11982()V- official - s- Ldyo;s()V
 
- 
write- Mappings:
- Namespace - Name - Mixin selector - named - write- Lnet/minecraft/world/border/WorldBorder;write()Lnet/minecraft/world/border/WorldBorder$Properties;- intermediary - method_27355- Lnet/minecraft/class_2784;method_27355()Lnet/minecraft/class_2784$class_5200;- official - t- Ldyo;t()Ldyo$c;
 
- 
load- Mappings:
- Namespace - Name - Mixin selector - named - load- Lnet/minecraft/world/border/WorldBorder;load(Lnet/minecraft/world/border/WorldBorder$Properties;)V- intermediary - method_17905- Lnet/minecraft/class_2784;method_17905(Lnet/minecraft/class_2784$class_5200;)V- official - a- Ldyo;a(Ldyo$c;)V
 
 
-