Record Class WorldBorder.Properties

java.lang.Object
java.lang.Record
net.minecraft.world.border.WorldBorder.Properties
Record Components:
centerX -
centerZ -
damagePerBlock -
safeZone -
warningBlocks -
warningTime -
size -
lerpTime -
lerpTarget -
Enclosing class:
WorldBorder

public static record WorldBorder.Properties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long lerpTime, double lerpTarget) extends Record
Mappings:
Namespace Name
named net/minecraft/world/border/WorldBorder$Properties
intermediary net/minecraft/class_2784$class_5200
official elf$c
named centerX
intermediary comp_4774
official c
named centerZ
intermediary comp_4775
official d
named damagePerBlock
intermediary comp_4776
official e
named safeZone
intermediary comp_4777
official f
named warningBlocks
intermediary comp_4778
official g
named warningTime
intermediary comp_4779
official h
named size
intermediary comp_4780
official i
named lerpTime
intermediary comp_4781
official j
named lerpTarget
intermediary comp_4782
official k
  • Field Details

    • centerX

      private final double centerX
      The field for the centerX record component.
    • centerZ

      private final double centerZ
      The field for the centerZ record component.
    • damagePerBlock

      private final double damagePerBlock
      The field for the damagePerBlock record component.
    • safeZone

      private final double safeZone
      The field for the safeZone record component.
    • warningBlocks

      private final int warningBlocks
      The field for the warningBlocks record component.
    • warningTime

      private final int warningTime
      The field for the warningTime record component.
    • size

      private final double size
      The field for the size record component.
    • lerpTime

      private final long lerpTime
      The field for the lerpTime record component.
    • lerpTarget

      private final double lerpTarget
      The field for the lerpTarget record component.
    • DEFAULT

      public static final WorldBorder.Properties DEFAULT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT Lnet/minecraft/world/border/WorldBorder$Properties;DEFAULT:Lnet/minecraft/world/border/WorldBorder$Properties;
      intermediary field_62538 Lnet/minecraft/class_2784$class_5200;field_62538:Lnet/minecraft/class_2784$class_5200;
      official a Lelf$c;a:Lelf$c;
    • CODEC

      public static final com.mojang.serialization.Codec<WorldBorder.Properties> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/border/WorldBorder$Properties;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_62539 Lnet/minecraft/class_2784$class_5200;field_62539:Lcom/mojang/serialization/Codec;
      official b Lelf$c;b:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Properties

      public Properties(WorldBorder worldBorder)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/border/WorldBorder$Properties;<init>(Lnet/minecraft/world/border/WorldBorder;)V
      intermediary <init> Lnet/minecraft/class_2784$class_5200;<init>(Lnet/minecraft/class_2784;)V
      official <init> Lelf$c;<init>(Lelf;)V
    • Properties

      public Properties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long sizeLerpTime, double sizeLerpTarget)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/border/WorldBorder$Properties;<init>(DDDDIIDJD)V
      intermediary <init> Lnet/minecraft/class_2784$class_5200;<init>(DDDDIIDJD)V
      official <init> Lelf$c;<init>(DDDDIIDJD)V
  • Method Details

    • toWorldBorder

      public WorldBorder toWorldBorder()
      Mappings:
      Namespace Name Mixin selector
      named toWorldBorder Lnet/minecraft/world/border/WorldBorder$Properties;toWorldBorder()Lnet/minecraft/world/border/WorldBorder;
      intermediary method_74149 Lnet/minecraft/class_2784$class_5200;method_74149()Lnet/minecraft/class_2784;
      official a Lelf$c;a()Lelf;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • centerX

      public double centerX()
      Returns the value of the centerX record component.
      Returns:
      the value of the centerX record component
    • centerZ

      public double centerZ()
      Returns the value of the centerZ record component.
      Returns:
      the value of the centerZ record component
    • damagePerBlock

      public double damagePerBlock()
      Returns the value of the damagePerBlock record component.
      Returns:
      the value of the damagePerBlock record component
    • safeZone

      public double safeZone()
      Returns the value of the safeZone record component.
      Returns:
      the value of the safeZone record component
    • warningBlocks

      public int warningBlocks()
      Returns the value of the warningBlocks record component.
      Returns:
      the value of the warningBlocks record component
    • warningTime

      public int warningTime()
      Returns the value of the warningTime record component.
      Returns:
      the value of the warningTime record component
    • size

      public double size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • lerpTime

      public long lerpTime()
      Returns the value of the lerpTime record component.
      Returns:
      the value of the lerpTime record component
    • lerpTarget

      public double lerpTarget()
      Returns the value of the lerpTarget record component.
      Returns:
      the value of the lerpTarget record component