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 -
getSizeLerpTime -
getSizeLerpTarget -
Enclosing class:
WorldBorder

public static record WorldBorder.Properties(double centerX, double centerZ, double damagePerBlock, double safeZone, int warningBlocks, int warningTime, double size, long getSizeLerpTime, double getSizeLerpTarget) extends Record
Mappings:
Namespace Name
named net/minecraft/world/border/WorldBorder$Properties
intermediary net/minecraft/class_2784$class_5200
official eki$d
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 getSizeLerpTime
intermediary comp_4781
official j
named getSizeLerpTarget
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.
    • getSizeLerpTime

      private final long getSizeLerpTime
      The field for the getSizeLerpTime record component.
    • getSizeLerpTarget

      private final double getSizeLerpTarget
      The field for the getSizeLerpTarget record component.
    • field_62538

      public static final WorldBorder.Properties field_62538
      Mappings:
      Namespace Name Mixin selector
      named field_62538 Lnet/minecraft/world/border/WorldBorder$Properties;field_62538: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 Leki$d;a:Leki$d;
    • field_62539

      public static final com.mojang.serialization.Codec<WorldBorder.Properties> field_62539
      Mappings:
      Namespace Name Mixin selector
      named field_62539 Lnet/minecraft/world/border/WorldBorder$Properties;field_62539:Lcom/mojang/serialization/Codec;
      intermediary field_62539 Lnet/minecraft/class_2784$class_5200;field_62539:Lcom/mojang/serialization/Codec;
      official b Leki$d;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> Leki$d;<init>(Leki;)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> Leki$d;<init>(DDDDIIDJD)V
  • Method Details

    • method_74149

      public WorldBorder method_74149()
      Mappings:
      Namespace Name Mixin selector
      named method_74149 Lnet/minecraft/world/border/WorldBorder$Properties;method_74149()Lnet/minecraft/world/border/WorldBorder;
      intermediary method_74149 Lnet/minecraft/class_2784$class_5200;method_74149()Lnet/minecraft/class_2784;
      official a Leki$d;a()Leki;
    • 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
    • getSizeLerpTime

      public long getSizeLerpTime()
      Returns the value of the getSizeLerpTime record component.
      Returns:
      the value of the getSizeLerpTime record component
    • getSizeLerpTarget

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