Record Class UnstitchAtlasSource.Region

java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.UnstitchAtlasSource.Region
Record Components:
sprite -
x -
y -
width -
height -
Enclosing class:
UnstitchAtlasSource

@Environment(CLIENT) private static record UnstitchAtlasSource.Region(Identifier sprite, double x, double y, double width, double height) extends Record
Mappings:
Namespace Name
named net/minecraft/client/texture/atlas/UnstitchAtlasSource$Region
intermediary net/minecraft/class_7957$class_7959
official hby$a
named sprite
intermediary comp_1163
official b
named x
intermediary comp_1164
official c
named y
intermediary comp_1165
official d
named width
intermediary comp_1166
official e
named height
intermediary comp_1167
official f
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<UnstitchAtlasSource.Region>
     
    private final double
    The field for the height record component.
    private final Identifier
    The field for the sprite record component.
    private final double
    The field for the width record component.
    private final double
    The field for the x record component.
    private final double
    The field for the y record component.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Region(Identifier identifier, double double2, double double3, double double4, double double5)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    equals(Object object)
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    double
    Returns the value of the height record component.
    Returns the value of the sprite record component.
    final String
    Returns a string representation of this record class.
    double
    Returns the value of the width record component.
    double
    x()
    Returns the value of the x record component.
    double
    y()
    Returns the value of the y record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • sprite

      private final Identifier sprite
      The field for the sprite record component.
    • x

      private final double x
      The field for the x record component.
    • y

      private final double y
      The field for the y record component.
    • width

      private final double width
      The field for the width record component.
    • height

      private final double height
      The field for the height record component.
    • CODEC

      public static final com.mojang.serialization.Codec<UnstitchAtlasSource.Region> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/texture/atlas/UnstitchAtlasSource$Region;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_41420 Lnet/minecraft/class_7957$class_7959;field_41420:Lcom/mojang/serialization/Codec;
      official a Lhby$a;a:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Region

      private Region(Identifier identifier, double double2, double double3, double double4, double double5)
  • Method Details

    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components 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.
    • sprite

      public Identifier sprite()
      Returns the value of the sprite record component.
      Returns:
      the value of the sprite record component
    • x

      public double x()
      Returns the value of the x record component.
      Returns:
      the value of the x record component
    • y

      public double y()
      Returns the value of the y record component.
      Returns:
      the value of the y record component
    • width

      public double width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

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