Record Class Scaling.NineSlice.Border

java.lang.Object
java.lang.Record
net.minecraft.client.texture.Scaling.NineSlice.Border
Record Components:
left -
top -
right -
bottom -
Enclosing class:
Scaling.NineSlice

@Environment(CLIENT) public static record Scaling.NineSlice.Border(int left, int top, int right, int bottom) extends Record
Mappings:
Namespace Name
named net/minecraft/client/texture/Scaling$NineSlice$Border
intermediary net/minecraft/class_8690$class_8691$class_8692
official gqt$a$a
named left
intermediary comp_1640
official a
named top
intermediary comp_1641
official b
named right
intermediary comp_1642
official c
named bottom
intermediary comp_1643
official d
  • Field Details

    • left

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

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

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

      private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> UNIFORM_SIDE_SIZES_CODEC
      Mappings:
      Namespace Name Mixin selector
      named UNIFORM_SIDE_SIZES_CODEC Lnet/minecraft/client/texture/Scaling$NineSlice$Border;UNIFORM_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45651 Lnet/minecraft/class_8690$class_8691$class_8692;field_45651:Lcom/mojang/serialization/Codec;
      official e Lgqt$a$a;e:Lcom/mojang/serialization/Codec;
    • DIFFERENT_SIDE_SIZES_CODEC

      private static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> DIFFERENT_SIDE_SIZES_CODEC
      Mappings:
      Namespace Name Mixin selector
      named DIFFERENT_SIDE_SIZES_CODEC Lnet/minecraft/client/texture/Scaling$NineSlice$Border;DIFFERENT_SIDE_SIZES_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45652 Lnet/minecraft/class_8690$class_8691$class_8692;field_45652:Lcom/mojang/serialization/Codec;
      official f Lgqt$a$a;f:Lcom/mojang/serialization/Codec;
    • CODEC

      static final com.mojang.serialization.Codec<Scaling.NineSlice.Border> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/texture/Scaling$NineSlice$Border;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_45653 Lnet/minecraft/class_8690$class_8691$class_8692;field_45653:Lcom/mojang/serialization/Codec;
      official g Lgqt$a$a;g:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Border

      public Border(int int2, int int3, int int4, int int5)
  • Method Details

    • getUniformSideSize

      private OptionalInt getUniformSideSize()
      Mappings:
      Namespace Name Mixin selector
      named getUniformSideSize Lnet/minecraft/client/texture/Scaling$NineSlice$Border;getUniformSideSize()Ljava/util/OptionalInt;
      intermediary method_52883 Lnet/minecraft/class_8690$class_8691$class_8692;method_52883()Ljava/util/OptionalInt;
      official e Lgqt$a$a;e()Ljava/util/OptionalInt;
    • 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.
    • left

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

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

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

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