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 official ftp$a
intermediary net/minecraft/class_7957$class_7959
named net/minecraft/client/texture/atlas/UnstitchAtlasSource$Region
official b
intermediary comp_1163
named sprite
official c
intermediary comp_1164
named x
official d
intermediary comp_1165
named y
official e
intermediary comp_1166
named width
official f
intermediary comp_1167
named height
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UnstitchAtlasSource.Region>
private final double
The field for theheight
record component.private final Identifier
The field for thesprite
record component.private final double
The field for thewidth
record component.private final double
The field for thex
record component.private final double
The field for they
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
Region
(Identifier identifier, double double2, double double3, double double4, double double5) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.double
height()
Returns the value of theheight
record component.sprite()
Returns the value of thesprite
record component.final String
toString()
Returns a string representation of this record class.double
width()
Returns the value of thewidth
record component.double
x()
Returns the value of thex
record component.double
y()
Returns the value of they
record component.
-
Field Details
-
sprite
The field for thesprite
record component. -
x
private final double xThe field for thex
record component. -
y
private final double yThe field for they
record component. -
width
private final double widthThe field for thewidth
record component. -
height
private final double heightThe field for theheight
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Lftp$a;a:Lcom/mojang/serialization/Codec;
intermediary field_41420
Lnet/minecraft/class_7957$class_7959;field_41420:Lcom/mojang/serialization/Codec;
named CODEC
Lnet/minecraft/client/texture/atlas/UnstitchAtlasSource$Region;CODEC:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
Region
private Region(Identifier identifier, double double2, double double3, double double4, double double5)
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
sprite
Returns the value of thesprite
record component.- Returns:
- the value of the
sprite
record component
-
x
public double x()Returns the value of thex
record component.- Returns:
- the value of the
x
record component
-
y
public double y()Returns the value of they
record component.- Returns:
- the value of the
y
record component
-
width
public double width()Returns the value of thewidth
record component.- Returns:
- the value of the
width
record component
-
height
public double height()Returns the value of theheight
record component.- Returns:
- the value of the
height
record component
-