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 - hfi$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 SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionprivateRegion(Identifier identifier, double double2, double double3, double double4, double double5) 
- 
Method SummaryModifier 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- 
spriteThe field for thespriterecord component.
- 
xprivate final double xThe field for thexrecord component.
- 
yprivate final double yThe field for theyrecord component.
- 
widthprivate final double widthThe field for thewidthrecord component.
- 
heightprivate final double heightThe field for theheightrecord component.
- 
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- Lhfi$a;a:Lcom/mojang/serialization/Codec;
 
 
- 
- 
Constructor Details- 
Regionprivate Region(Identifier identifier, double double2, double double3, double double4, double double5) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
spriteReturns the value of thespriterecord component.- Returns:
- the value of the spriterecord component
 
- 
xpublic double x()Returns the value of thexrecord component.- Returns:
- the value of the xrecord component
 
- 
ypublic double y()Returns the value of theyrecord component.- Returns:
- the value of the yrecord component
 
- 
widthpublic double width()Returns the value of thewidthrecord component.- Returns:
- the value of the widthrecord component
 
- 
heightpublic double height()Returns the value of theheightrecord component.- Returns:
- the value of the heightrecord component
 
 
-