Package net.minecraft.world.border
Class WorldBorder
java.lang.Object
net.minecraft.world.border.WorldBorder
- Mappings:
Namespace Name official cmiintermediary net/minecraft/class_2784named net/minecraft/world/border/WorldBorder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static interfaceprivate classstatic classprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate WorldBorder.Areaprivate doubleprivate doubleprivate doublestatic WorldBorder.Propertiesstatic doubleprivate List<WorldBorderListener>(package private) intprivate doubleprivate intprivate int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(WorldBorderListener listener)booleancontains(double x, double z)booleanbooleanbooleandoubledoubledoubledoubledoubledoubledoubleReturns 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
-
field_33643
public static final double field_33643- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLcmi;c:Dintermediary field_33643Lnet/minecraft/class_2784;field_33643:Dnamed field_33643Lnet/minecraft/world/border/WorldBorder;field_33643:D
-
DEFAULT_BORDER
- Mappings:
Namespace Name Mixin selector official dLcmi;d:Lcmi$c;intermediary field_24122Lnet/minecraft/class_2784;field_24122:Lnet/minecraft/class_2784$class_5200;named DEFAULT_BORDERLnet/minecraft/world/border/WorldBorder;DEFAULT_BORDER:Lnet/minecraft/world/border/WorldBorder$Properties;
-
listeners
- Mappings:
Namespace Name Mixin selector official aLcmi;a:Ljava/util/List;intermediary field_12730Lnet/minecraft/class_2784;field_12730:Ljava/util/List;named listenersLnet/minecraft/world/border/WorldBorder;listeners:Ljava/util/List;
-
damagePerBlock
private double damagePerBlock- Mappings:
Namespace Name Mixin selector official bLcmi;b:Dintermediary field_12733Lnet/minecraft/class_2784;field_12733:Dnamed damagePerBlockLnet/minecraft/world/border/WorldBorder;damagePerBlock:D
-
safeZone
private double safeZone- Mappings:
Namespace Name Mixin selector official eLcmi;e:Dintermediary field_12731Lnet/minecraft/class_2784;field_12731:Dnamed safeZoneLnet/minecraft/world/border/WorldBorder;safeZone:D
-
warningTime
private int warningTime- Mappings:
Namespace Name Mixin selector official fLcmi;f:Iintermediary field_12735Lnet/minecraft/class_2784;field_12735:Inamed warningTimeLnet/minecraft/world/border/WorldBorder;warningTime:I
-
warningBlocks
private int warningBlocks- Mappings:
Namespace Name Mixin selector official gLcmi;g:Iintermediary field_12734Lnet/minecraft/class_2784;field_12734:Inamed warningBlocksLnet/minecraft/world/border/WorldBorder;warningBlocks:I
-
centerX
private double centerX- Mappings:
Namespace Name Mixin selector official hLcmi;h:Dintermediary field_12738Lnet/minecraft/class_2784;field_12738:Dnamed centerXLnet/minecraft/world/border/WorldBorder;centerX:D
-
centerZ
private double centerZ- Mappings:
Namespace Name Mixin selector official iLcmi;i:Dintermediary field_12737Lnet/minecraft/class_2784;field_12737:Dnamed centerZLnet/minecraft/world/border/WorldBorder;centerZ:D
-
maxRadius
int maxRadius- Mappings:
Namespace Name Mixin selector official jLcmi;j:Iintermediary field_12732Lnet/minecraft/class_2784;field_12732:Inamed maxRadiusLnet/minecraft/world/border/WorldBorder;maxRadius:I
-
area
- Mappings:
Namespace Name Mixin selector official kLcmi;k:Lcmi$a;intermediary field_12736Lnet/minecraft/class_2784;field_12736:Lnet/minecraft/class_2784$class_2785;named areaLnet/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 aLcmi;a(Lgg;)Zintermediary method_11952Lnet/minecraft/class_2784;method_11952(Lnet/minecraft/class_2338;)Znamed containsLnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/BlockPos;)Z
-
contains
- Mappings:
Namespace Name Mixin selector official aLcmi;a(Lbvu;)Zintermediary method_11951Lnet/minecraft/class_2784;method_11951(Lnet/minecraft/class_1923;)Znamed containsLnet/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 aLcmi;a(DD)Zintermediary method_35317Lnet/minecraft/class_2784;method_35317(DD)Znamed containsLnet/minecraft/world/border/WorldBorder;contains(DD)Z
-
contains
- Mappings:
Namespace Name Mixin selector official aLcmi;a(Ldmv;)Zintermediary method_11966Lnet/minecraft/class_2784;method_11966(Lnet/minecraft/class_238;)Znamed containsLnet/minecraft/world/border/WorldBorder;contains(Lnet/minecraft/util/math/Box;)Z
-
getDistanceInsideBorder
- Mappings:
Namespace Name Mixin selector official aLcmi;a(Latf;)Dintermediary method_11979Lnet/minecraft/class_2784;method_11979(Lnet/minecraft/class_1297;)Dnamed getDistanceInsideBorderLnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(Lnet/minecraft/entity/Entity;)D
-
asVoxelShape
- Mappings:
Namespace Name Mixin selector official cLcmi;c()Ldnt;intermediary method_17903Lnet/minecraft/class_2784;method_17903()Lnet/minecraft/class_265;named asVoxelShapeLnet/minecraft/world/border/WorldBorder;asVoxelShape()Lnet/minecraft/util/shape/VoxelShape;
-
getDistanceInsideBorder
public double getDistanceInsideBorder(double x, double z)- Mappings:
Namespace Name Mixin selector official bLcmi;b(DD)Dintermediary method_11961Lnet/minecraft/class_2784;method_11961(DD)Dnamed getDistanceInsideBorderLnet/minecraft/world/border/WorldBorder;getDistanceInsideBorder(DD)D
-
getStage
- Mappings:
Namespace Name Mixin selector official dLcmi;d()Lcmh;intermediary method_11968Lnet/minecraft/class_2784;method_11968()Lnet/minecraft/class_2789;named getStageLnet/minecraft/world/border/WorldBorder;getStage()Lnet/minecraft/world/border/WorldBorderStage;
-
getBoundWest
public double getBoundWest()- Mappings:
Namespace Name Mixin selector official eLcmi;e()Dintermediary method_11976Lnet/minecraft/class_2784;method_11976()Dnamed getBoundWestLnet/minecraft/world/border/WorldBorder;getBoundWest()D
-
getBoundNorth
public double getBoundNorth()- Mappings:
Namespace Name Mixin selector official fLcmi;f()Dintermediary method_11958Lnet/minecraft/class_2784;method_11958()Dnamed getBoundNorthLnet/minecraft/world/border/WorldBorder;getBoundNorth()D
-
getBoundEast
public double getBoundEast()- Mappings:
Namespace Name Mixin selector official gLcmi;g()Dintermediary method_11963Lnet/minecraft/class_2784;method_11963()Dnamed getBoundEastLnet/minecraft/world/border/WorldBorder;getBoundEast()D
-
getBoundSouth
public double getBoundSouth()- Mappings:
Namespace Name Mixin selector official hLcmi;h()Dintermediary method_11977Lnet/minecraft/class_2784;method_11977()Dnamed getBoundSouthLnet/minecraft/world/border/WorldBorder;getBoundSouth()D
-
getCenterX
public double getCenterX()- Mappings:
Namespace Name Mixin selector official aLcmi;a()Dintermediary method_11964Lnet/minecraft/class_2784;method_11964()Dnamed getCenterXLnet/minecraft/world/border/WorldBorder;getCenterX()D
-
getCenterZ
public double getCenterZ()- Mappings:
Namespace Name Mixin selector official bLcmi;b()Dintermediary method_11980Lnet/minecraft/class_2784;method_11980()Dnamed getCenterZLnet/minecraft/world/border/WorldBorder;getCenterZ()D
-
setCenter
public 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 official cLcmi;c(DD)Vintermediary method_11978Lnet/minecraft/class_2784;method_11978(DD)Vnamed setCenterLnet/minecraft/world/border/WorldBorder;setCenter(DD)V
-
getSize
public double getSize()- Mappings:
Namespace Name Mixin selector official iLcmi;i()Dintermediary method_11965Lnet/minecraft/class_2784;method_11965()Dnamed getSizeLnet/minecraft/world/border/WorldBorder;getSize()D
-
getSizeLerpTime
public long getSizeLerpTime()- Mappings:
Namespace Name Mixin selector official jLcmi;j()Jintermediary method_11962Lnet/minecraft/class_2784;method_11962()Jnamed getSizeLerpTimeLnet/minecraft/world/border/WorldBorder;getSizeLerpTime()J
-
getSizeLerpTarget
public double getSizeLerpTarget()- Mappings:
Namespace Name Mixin selector official kLcmi;k()Dintermediary method_11954Lnet/minecraft/class_2784;method_11954()Dnamed getSizeLerpTargetLnet/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 aLcmi;a(D)Vintermediary method_11969Lnet/minecraft/class_2784;method_11969(D)Vnamed setSizeLnet/minecraft/world/border/WorldBorder;setSize(D)V
-
interpolateSize
public void interpolateSize(double fromSize, double toSize, long time)- Mappings:
Namespace Name Mixin selector official aLcmi;a(DDJ)Vintermediary method_11957Lnet/minecraft/class_2784;method_11957(DDJ)Vnamed interpolateSizeLnet/minecraft/world/border/WorldBorder;interpolateSize(DDJ)V
-
getListeners
- Mappings:
Namespace Name Mixin selector official lLcmi;l()Ljava/util/List;intermediary method_11970Lnet/minecraft/class_2784;method_11970()Ljava/util/List;named getListenersLnet/minecraft/world/border/WorldBorder;getListeners()Ljava/util/List;
-
addListener
- Mappings:
Namespace Name Mixin selector official aLcmi;a(Lcmg;)Vintermediary method_11983Lnet/minecraft/class_2784;method_11983(Lnet/minecraft/class_2780;)Vnamed addListenerLnet/minecraft/world/border/WorldBorder;addListener(Lnet/minecraft/world/border/WorldBorderListener;)V
-
removeListener
- Mappings:
Namespace Name Mixin selector official bLcmi;b(Lcmg;)Vintermediary method_35318Lnet/minecraft/class_2784;method_35318(Lnet/minecraft/class_2780;)Vnamed removeListenerLnet/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 aLcmi;a(I)Vintermediary method_11973Lnet/minecraft/class_2784;method_11973(I)Vnamed setMaxRadiusLnet/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 mLcmi;m()Iintermediary method_11959Lnet/minecraft/class_2784;method_11959()Inamed getMaxRadiusLnet/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 nLcmi;n()Dintermediary method_11971Lnet/minecraft/class_2784;method_11971()Dnamed getSafeZoneLnet/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 bLcmi;b(D)Vintermediary method_11981Lnet/minecraft/class_2784;method_11981(D)Vnamed setSafeZoneLnet/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:
LivingEntity.baseTick()- Mappings:
Namespace Name Mixin selector official oLcmi;o()Dintermediary method_11953Lnet/minecraft/class_2784;method_11953()Dnamed getDamagePerBlockLnet/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 cLcmi;c(D)Vintermediary method_11955Lnet/minecraft/class_2784;method_11955(D)Vnamed setDamagePerBlockLnet/minecraft/world/border/WorldBorder;setDamagePerBlock(D)V
-
getShrinkingSpeed
public double getShrinkingSpeed()- Mappings:
Namespace Name Mixin selector official pLcmi;p()Dintermediary method_11974Lnet/minecraft/class_2784;method_11974()Dnamed getShrinkingSpeedLnet/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 qLcmi;q()Iintermediary method_11956Lnet/minecraft/class_2784;method_11956()Inamed getWarningTimeLnet/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 bLcmi;b(I)Vintermediary method_11975Lnet/minecraft/class_2784;method_11975(I)Vnamed setWarningTimeLnet/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 rLcmi;r()Iintermediary method_11972Lnet/minecraft/class_2784;method_11972()Inamed getWarningBlocksLnet/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 cLcmi;c(I)Vintermediary method_11967Lnet/minecraft/class_2784;method_11967(I)Vnamed setWarningBlocksLnet/minecraft/world/border/WorldBorder;setWarningBlocks(I)V
-
tick
public void tick()- Mappings:
Namespace Name Mixin selector official sLcmi;s()Vintermediary method_11982Lnet/minecraft/class_2784;method_11982()Vnamed tickLnet/minecraft/world/border/WorldBorder;tick()V
-
write
- Mappings:
Namespace Name Mixin selector official tLcmi;t()Lcmi$c;intermediary method_27355Lnet/minecraft/class_2784;method_27355()Lnet/minecraft/class_2784$class_5200;named writeLnet/minecraft/world/border/WorldBorder;write()Lnet/minecraft/world/border/WorldBorder$Properties;
-
load
- Mappings:
Namespace Name Mixin selector official aLcmi;a(Lcmi$c;)Vintermediary method_17905Lnet/minecraft/class_2784;method_17905(Lnet/minecraft/class_2784$class_5200;)Vnamed loadLnet/minecraft/world/border/WorldBorder;load(Lnet/minecraft/world/border/WorldBorder$Properties;)V
-