Record Class DimensionPadding

java.lang.Object
java.lang.Record
net.minecraft.world.gen.structure.DimensionPadding
Record Components:
bottom -
top -

public record DimensionPadding(int bottom, int top) extends Record
Mappings:
Namespace Name
named net/minecraft/world/gen/structure/DimensionPadding
intermediary net/minecraft/class_9778
official epj
named bottom
intermediary comp_2818
official c
named top
intermediary comp_2819
official d
  • Field Details

    • bottom

      private final int bottom
      The field for the bottom record component.
    • top

      private final int top
      The field for the top record component.
    • OBJECT_CODEC

      private static final com.mojang.serialization.Codec<DimensionPadding> OBJECT_CODEC
      Mappings:
      Namespace Name Mixin selector
      named OBJECT_CODEC Lnet/minecraft/world/gen/structure/DimensionPadding;OBJECT_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51954 Lnet/minecraft/class_9778;field_51954:Lcom/mojang/serialization/Codec;
      official e Lepj;e:Lcom/mojang/serialization/Codec;
    • CODEC

      public static final com.mojang.serialization.Codec<DimensionPadding> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/world/gen/structure/DimensionPadding;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_51952 Lnet/minecraft/class_9778;field_51952:Lcom/mojang/serialization/Codec;
      official a Lepj;a:Lcom/mojang/serialization/Codec;
    • NONE

      public static final DimensionPadding NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/world/gen/structure/DimensionPadding;NONE:Lnet/minecraft/world/gen/structure/DimensionPadding;
      intermediary field_51953 Lnet/minecraft/class_9778;field_51953:Lnet/minecraft/class_9778;
      official b Lepj;b:Lepj;
  • Constructor Details

    • DimensionPadding

      public DimensionPadding(int value)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/gen/structure/DimensionPadding;<init>(I)V
      intermediary <init> Lnet/minecraft/class_9778;<init>(I)V
      official <init> Lepj;<init>(I)V
    • DimensionPadding

      public DimensionPadding(int int2, int int3)
  • Method Details

    • paddedBySameDistance

      public boolean paddedBySameDistance()
      Mappings:
      Namespace Name Mixin selector
      named paddedBySameDistance Lnet/minecraft/world/gen/structure/DimensionPadding;paddedBySameDistance()Z
      intermediary method_60629 Lnet/minecraft/class_9778;method_60629()Z
      official a Lepj;a()Z
    • 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.
    • bottom

      public int bottom()
      Returns the value of the bottom record component.
      Returns:
      the value of the bottom record component
    • top

      public int top()
      Returns the value of the top record component.
      Returns:
      the value of the top record component