Package net.minecraft.world.border
Class WorldBorder
java.lang.Object
net.minecraft.world.border.WorldBorder
- Mappings:
Namespace Name official dky
intermediary net/minecraft/class_2784
named net/minecraft/world/border/WorldBorder
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
private class
static class
private class
-
Field Summary
Modifier and TypeFieldDescriptionprivate WorldBorder.Area
private double
private double
private double
static final WorldBorder.Properties
private final List<WorldBorderListener>
static final double
(package private) int
private double
static final double
private int
private int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(WorldBorderListener listener) boolean
canCollide
(Entity entity, Box box) clamp
(double x, double y, double z) boolean
contains
(double x, double z) boolean
contains
(double x, double z, double margin) boolean
boolean
boolean
double
double
double
double
double
double
double
Returns the damage increase per block beyond this border, in hearts.double
getDistanceInsideBorder
(double x, double z) double
getDistanceInsideBorder
(Entity entity) protected List<WorldBorderListener>
int
Returns the maximum radius of this border, in blocks.double
Returns the safe zone of this border.double
double
getSize()
double
long
getStage()
int
Returns the warning distance of this border, in blocks.int
Returns the warning time of this border, in ticks.void
interpolateSize
(double fromSize, double toSize, long time) void
load
(WorldBorder.Properties properties) void
removeListener
(WorldBorderListener listener) void
setCenter
(double x, double z) Sets thex
andz
coordinates of the center of this border, and notifies its area and all listeners.void
setDamagePerBlock
(double damagePerBlock) Sets the damage per block of this border and notifies all listeners.void
setMaxRadius
(int maxRadius) Sets the maximum radius of this border and notifies its area.void
setSafeZone
(double safeZone) Sets the safe zone of this border and notifies all listeners.void
setSize
(double size) Sets the area of this border to a static area with the givensize
, and notifies all listeners.void
setWarningBlocks
(int warningBlocks) Sets the warning blocks of this border and notifies all listeners.void
setWarningTime
(int warningTime) Sets the warning time of this border and notifies all listeners.void
tick()
write()
-
Field Details
-
STATIC_AREA_SIZE
public static final double STATIC_AREA_SIZE- See Also:
- Mappings:
Namespace Name Mixin selector official c
Ldky;c:D
intermediary field_33643
Lnet/minecraft/class_2784;field_33643:D
named STATIC_AREA_SIZE
Lnet/minecraft/world/border/WorldBorder;STATIC_AREA_SIZE:D
-
MAX_CENTER_COORDINATES
public static final double MAX_CENTER_COORDINATES- See Also:
- Mappings:
Namespace Name Mixin selector official d
Ldky;d:D
intermediary field_36191
Lnet/minecraft/class_2784;field_36191:D
named MAX_CENTER_COORDINATES
Lnet/minecraft/world/border/WorldBorder;MAX_CENTER_COORDINATES:D
-
DEFAULT_BORDER
- Mappings:
Namespace Name Mixin selector official e
Ldky;e:Ldky$c;
intermediary field_24122
Lnet/minecraft/class_2784;field_24122:Lnet/minecraft/class_2784$class_5200;
named DEFAULT_BORDER
Lnet/minecraft/world/border/WorldBorder;DEFAULT_BORDER:Lnet/minecraft/world/border/WorldBorder$Properties;
-
listeners
- Mappings:
Namespace Name Mixin selector official a
Ldky;a:Ljava/util/List;
intermediary field_12730
Lnet/minecraft/class_2784;field_12730:Ljava/util/List;
named listeners
Lnet/minecraft/world/border/WorldBorder;listeners:Ljava/util/List;
-
damagePerBlock
private double damagePerBlock- Mappings:
Namespace Name Mixin selector official b
Ldky;b:D
intermediary field_12733
Lnet/minecraft/class_2784;field_12733:D
named damagePerBlock
Lnet/minecraft/world/border/WorldBorder;damagePerBlock:D
-
safeZone
private double safeZone- Mappings:
Namespace Name Mixin selector official f
Ldky;f:D
intermediary field_12731
Lnet/minecraft/class_2784;field_12731:D
named safeZone
Lnet/minecraft/world/border/WorldBorder;safeZone:D
-
warningTime
private int warningTime- Mappings:
Namespace Name Mixin selector official g
Ldky;g:I
intermediary field_12735
Lnet/minecraft/class_2784;field_12735:I
named warningTime
Lnet/minecraft/world/border/WorldBorder;warningTime:I
-
warningBlocks
private int warningBlocks- Mappings:
Namespace Name Mixin selector official h
Ldky;h:I
intermediary field_12734
Lnet/minecraft/class_2784;field_12734:I
named warningBlocks
Lnet/minecraft/world/border/WorldBorder;warningBlocks:I
-
centerX
private double centerX- Mappings:
Namespace Name Mixin selector official i
Ldky;i:D
intermediary field_12738
Lnet/minecraft/class_2784;field_12738:D
named centerX
Lnet/minecraft/world/border/WorldBorder;centerX:D
-
centerZ
private double centerZ- Mappings:
Namespace Name Mixin selector official j
Ldky;j:D
intermediary field_12737
Lnet/minecraft/class_2784;field_12737:D
named centerZ
Lnet/minecraft/world/border/WorldBorder;centerZ:D
-
maxRadius
int maxRadius- Mappings:
Namespace Name Mixin selector official k
Ldky;k:I
intermediary field_12732
Lnet/minecraft/class_2784;field_12732:I
named maxRadius
Lnet/minecraft/world/border/WorldBorder;maxRadius:I
-
area
- Mappings:
Namespace Name Mixin selector official l
Ldky;l:Ldky$a;
intermediary field_12736
Lnet/minecraft/class_2784;field_12736:Lnet/minecraft/class_2784$class_2785;
named area
Lnet/minecraft/world/border/WorldBorder;area:Lnet/minecraft/world/border/WorldBorder$Area;
-
-
Constructor Details
-
WorldBorder
public WorldBorder()
-
-
Method Details
-
contains
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Lhx;)Z
intermediary method_11952
Lnet/minecraft/class_2784;method_11952(Lnet/minecraft/class_2338;)Z
named contains
Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/BlockPos;)Z
-
contains
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Lcsw;)Z
intermediary method_11951
Lnet/minecraft/class_2784;method_11951(Lnet/minecraft/class_1923;)Z
named contains
Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/ChunkPos;)Z
-
contains
public boolean contains(double x, double z) - Mappings:
Namespace Name Mixin selector official a
Ldky;a(DD)Z
intermediary method_35317
Lnet/minecraft/class_2784;method_35317(DD)Z
named contains
Lnet/minecraft/world/border/WorldBorder;contains(DD)Z
-
contains
public boolean contains(double x, double z, double margin) - Mappings:
Namespace Name Mixin selector official a
Ldky;a(DDD)Z
intermediary method_39458
Lnet/minecraft/class_2784;method_39458(DDD)Z
named contains
Lnet/minecraft/world/border/WorldBorder;contains(DDD)Z
-
contains
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Lelo;)Z
intermediary method_11966
Lnet/minecraft/class_2784;method_11966(Lnet/minecraft/class_238;)Z
named contains
Lnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/Box;)Z
-
clamp
- Mappings:
Namespace Name Mixin selector official b
Ldky;b(DDD)Lhx;
intermediary method_39538
Lnet/minecraft/class_2784;method_39538(DDD)Lnet/minecraft/class_2338;
named clamp
Lnet/minecraft/world/border/WorldBorder;clamp(DDD)Lnet/minecraft/util/math/BlockPos;
-
getDistanceInsideBorder
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Lblv;)D
intermediary method_11979
Lnet/minecraft/class_2784;method_11979(Lnet/minecraft/class_1297;)D
named getDistanceInsideBorder
Lnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(Lnet/minecraft/entity/Entity;)D
-
asVoxelShape
- Mappings:
Namespace Name Mixin selector official c
Ldky;c()Lemm;
intermediary method_17903
Lnet/minecraft/class_2784;method_17903()Lnet/minecraft/class_265;
named asVoxelShape
Lnet/minecraft/world/border/WorldBorder;asVoxelShape()Lnet/minecraft/util/shape/VoxelShape;
-
getDistanceInsideBorder
public double getDistanceInsideBorder(double x, double z) - Mappings:
Namespace Name Mixin selector official b
Ldky;b(DD)D
intermediary method_11961
Lnet/minecraft/class_2784;method_11961(DD)D
named getDistanceInsideBorder
Lnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(DD)D
-
canCollide
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Lblv;Lelo;)Z
intermediary method_39459
Lnet/minecraft/class_2784;method_39459(Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z
named canCollide
Lnet/minecraft/world/border/WorldBorder;canCollide(Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Box;)Z
-
getStage
- Mappings:
Namespace Name Mixin selector official d
Ldky;d()Ldkx;
intermediary method_11968
Lnet/minecraft/class_2784;method_11968()Lnet/minecraft/class_2789;
named getStage
Lnet/minecraft/world/border/WorldBorder;getStage()Lnet/minecraft/world/border/WorldBorderStage;
-
getBoundWest
public double getBoundWest()- Mappings:
Namespace Name Mixin selector official e
Ldky;e()D
intermediary method_11976
Lnet/minecraft/class_2784;method_11976()D
named getBoundWest
Lnet/minecraft/world/border/WorldBorder;getBoundWest()D
-
getBoundNorth
public double getBoundNorth()- Mappings:
Namespace Name Mixin selector official f
Ldky;f()D
intermediary method_11958
Lnet/minecraft/class_2784;method_11958()D
named getBoundNorth
Lnet/minecraft/world/border/WorldBorder;getBoundNorth()D
-
getBoundEast
public double getBoundEast()- Mappings:
Namespace Name Mixin selector official g
Ldky;g()D
intermediary method_11963
Lnet/minecraft/class_2784;method_11963()D
named getBoundEast
Lnet/minecraft/world/border/WorldBorder;getBoundEast()D
-
getBoundSouth
public double getBoundSouth()- Mappings:
Namespace Name Mixin selector official h
Ldky;h()D
intermediary method_11977
Lnet/minecraft/class_2784;method_11977()D
named getBoundSouth
Lnet/minecraft/world/border/WorldBorder;getBoundSouth()D
-
getCenterX
public double getCenterX()- Mappings:
Namespace Name Mixin selector official a
Ldky;a()D
intermediary method_11964
Lnet/minecraft/class_2784;method_11964()D
named getCenterX
Lnet/minecraft/world/border/WorldBorder;getCenterX()D
-
getCenterZ
public double getCenterZ()- Mappings:
Namespace Name Mixin selector official b
Ldky;b()D
intermediary method_11980
Lnet/minecraft/class_2784;method_11980()D
named getCenterZ
Lnet/minecraft/world/border/WorldBorder;getCenterZ()D
-
setCenter
public void setCenter(double x, double z) Sets thex
andz
coordinates of the center of this border, and notifies its area and all listeners.- Mappings:
Namespace Name Mixin selector official c
Ldky;c(DD)V
intermediary method_11978
Lnet/minecraft/class_2784;method_11978(DD)V
named setCenter
Lnet/minecraft/world/border/WorldBorder;setCenter(DD)V
-
getSize
public double getSize()- Mappings:
Namespace Name Mixin selector official i
Ldky;i()D
intermediary method_11965
Lnet/minecraft/class_2784;method_11965()D
named getSize
Lnet/minecraft/world/border/WorldBorder;getSize()D
-
getSizeLerpTime
public long getSizeLerpTime()- Mappings:
Namespace Name Mixin selector official j
Ldky;j()J
intermediary method_11962
Lnet/minecraft/class_2784;method_11962()J
named getSizeLerpTime
Lnet/minecraft/world/border/WorldBorder;getSizeLerpTime()J
-
getSizeLerpTarget
public double getSizeLerpTarget()- Mappings:
Namespace Name Mixin selector official k
Ldky;k()D
intermediary method_11954
Lnet/minecraft/class_2784;method_11954()D
named getSizeLerpTarget
Lnet/minecraft/world/border/WorldBorder;getSizeLerpTarget()D
-
setSize
public 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 official a
Ldky;a(D)V
intermediary method_11969
Lnet/minecraft/class_2784;method_11969(D)V
named setSize
Lnet/minecraft/world/border/WorldBorder;setSize(D)V
-
interpolateSize
public void interpolateSize(double fromSize, double toSize, long time) - Mappings:
Namespace Name Mixin selector official a
Ldky;a(DDJ)V
intermediary method_11957
Lnet/minecraft/class_2784;method_11957(DDJ)V
named interpolateSize
Lnet/minecraft/world/border/WorldBorder;interpolateSize(DDJ)V
-
getListeners
- Mappings:
Namespace Name Mixin selector official l
Ldky;l()Ljava/util/List;
intermediary method_11970
Lnet/minecraft/class_2784;method_11970()Ljava/util/List;
named getListeners
Lnet/minecraft/world/border/WorldBorder;getListeners()Ljava/util/List;
-
addListener
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Ldkw;)V
intermediary method_11983
Lnet/minecraft/class_2784;method_11983(Lnet/minecraft/class_2780;)V
named addListener
Lnet/minecraft/world/border/WorldBorder;addListener(Lnet/minecraft/world/border/WorldBorderListener;)V
-
removeListener
- Mappings:
Namespace Name Mixin selector official b
Ldky;b(Ldkw;)V
intermediary method_35318
Lnet/minecraft/class_2784;method_35318(Lnet/minecraft/class_2780;)V
named removeListener
Lnet/minecraft/world/border/WorldBorder;removeListener(Lnet/minecraft/world/border/WorldBorderListener;)V
-
setMaxRadius
public void setMaxRadius(int maxRadius) Sets the maximum radius of this border and notifies its area.- Mappings:
Namespace Name Mixin selector official a
Ldky;a(I)V
intermediary method_11973
Lnet/minecraft/class_2784;method_11973(I)V
named setMaxRadius
Lnet/minecraft/world/border/WorldBorder;setMaxRadius(I)V
-
getMaxRadius
public int getMaxRadius()Returns the maximum radius of this border, in blocks.The default value is 29999984.
- Mappings:
Namespace Name Mixin selector official m
Ldky;m()I
intermediary method_11959
Lnet/minecraft/class_2784;method_11959()I
named getMaxRadius
Lnet/minecraft/world/border/WorldBorder;getMaxRadius()I
-
getSafeZone
public double getSafeZone()Returns the safe zone of this border.The default value is 5.0.
- Mappings:
Namespace Name Mixin selector official n
Ldky;n()D
intermediary method_11971
Lnet/minecraft/class_2784;method_11971()D
named getSafeZone
Lnet/minecraft/world/border/WorldBorder;getSafeZone()D
-
setSafeZone
public void setSafeZone(double safeZone) Sets the safe zone of this border and notifies all listeners.- Mappings:
Namespace Name Mixin selector official b
Ldky;b(D)V
intermediary method_11981
Lnet/minecraft/class_2784;method_11981(D)V
named setSafeZone
Lnet/minecraft/world/border/WorldBorder;setSafeZone(D)V
-
getDamagePerBlock
public 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 official o
Ldky;o()D
intermediary method_11953
Lnet/minecraft/class_2784;method_11953()D
named getDamagePerBlock
Lnet/minecraft/world/border/WorldBorder;getDamagePerBlock()D
-
setDamagePerBlock
public void setDamagePerBlock(double damagePerBlock) Sets the damage per block of this border and notifies all listeners.- Mappings:
Namespace Name Mixin selector official c
Ldky;c(D)V
intermediary method_11955
Lnet/minecraft/class_2784;method_11955(D)V
named setDamagePerBlock
Lnet/minecraft/world/border/WorldBorder;setDamagePerBlock(D)V
-
getShrinkingSpeed
public double getShrinkingSpeed()- Mappings:
Namespace Name Mixin selector official p
Ldky;p()D
intermediary method_11974
Lnet/minecraft/class_2784;method_11974()D
named getShrinkingSpeed
Lnet/minecraft/world/border/WorldBorder;getShrinkingSpeed()D
-
getWarningTime
public 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 official q
Ldky;q()I
intermediary method_11956
Lnet/minecraft/class_2784;method_11956()I
named getWarningTime
Lnet/minecraft/world/border/WorldBorder;getWarningTime()I
-
setWarningTime
public void setWarningTime(int warningTime) Sets the warning time of this border and notifies all listeners.- Mappings:
Namespace Name Mixin selector official b
Ldky;b(I)V
intermediary method_11975
Lnet/minecraft/class_2784;method_11975(I)V
named setWarningTime
Lnet/minecraft/world/border/WorldBorder;setWarningTime(I)V
-
getWarningBlocks
public 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 official r
Ldky;r()I
intermediary method_11972
Lnet/minecraft/class_2784;method_11972()I
named getWarningBlocks
Lnet/minecraft/world/border/WorldBorder;getWarningBlocks()I
-
setWarningBlocks
public void setWarningBlocks(int warningBlocks) Sets the warning blocks of this border and notifies all listeners.- Mappings:
Namespace Name Mixin selector official c
Ldky;c(I)V
intermediary method_11967
Lnet/minecraft/class_2784;method_11967(I)V
named setWarningBlocks
Lnet/minecraft/world/border/WorldBorder;setWarningBlocks(I)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official s
Ldky;s()V
intermediary method_11982
Lnet/minecraft/class_2784;method_11982()V
named tick
Lnet/minecraft/world/border/WorldBorder;tick()V
-
write
- Mappings:
Namespace Name Mixin selector official t
Ldky;t()Ldky$c;
intermediary method_27355
Lnet/minecraft/class_2784;method_27355()Lnet/minecraft/class_2784$class_5200;
named write
Lnet/minecraft/world/border/WorldBorder;write()Lnet/minecraft/world/border/WorldBorder$Properties;
-
load
- Mappings:
Namespace Name Mixin selector official a
Ldky;a(Ldky$c;)V
intermediary method_17905
Lnet/minecraft/class_2784;method_17905(Lnet/minecraft/class_2784$class_5200;)V
named load
Lnet/minecraft/world/border/WorldBorder;load(Lnet/minecraft/world/border/WorldBorder$Properties;)V
-