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$Regionintermediary net/minecraft/class_7957$class_7959official gqz$anamed spriteintermediary comp_1163official bnamed xintermediary comp_1164official cnamed yintermediary comp_1165official dnamed widthintermediary comp_1166official enamed heightintermediary comp_1167official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<UnstitchAtlasSource.Region> private final doubleThe field for theheightrecord component.private final IdentifierThe field for thespriterecord component.private final doubleThe field for thewidthrecord component.private final doubleThe field for thexrecord component.private final doubleThe field for theyrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateRegion(Identifier identifier, double double2, double double3, double double4, double double5) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleheight()Returns the value of theheightrecord component.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.doublewidth()Returns the value of thewidthrecord component.doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.
-
Field Details
-
sprite
The field for thespriterecord component. -
x
private final double xThe field for thexrecord component. -
y
private final double yThe field for theyrecord component. -
width
private final double widthThe field for thewidthrecord component. -
height
private final double heightThe field for theheightrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/texture/atlas/UnstitchAtlasSource$Region;CODEC:Lcom/mojang/serialization/Codec;intermediary field_41420Lnet/minecraft/class_7957$class_7959;field_41420:Lcom/mojang/serialization/Codec;official aLgqz$a;a: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 thespriterecord component.- Returns:
- the value of the
spriterecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
width
public double width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public double height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-