Record Class UnstitchAtlasSource
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.UnstitchAtlasSource
- Record Components:
resource-regions-divisorX-divisorY-
- All Implemented Interfaces:
AtlasSource
@Environment(CLIENT)
public record UnstitchAtlasSource(Identifier resource, List<UnstitchAtlasSource.Region> regions, double divisorX, double divisorY)
extends Record
implements AtlasSource
- Mappings:
Namespace Name named net/minecraft/client/texture/atlas/UnstitchAtlasSourceintermediary net/minecraft/class_7957official hlenamed resourceintermediary comp_3622official cnamed regionsintermediary comp_3623official dnamed divisorXintermediary comp_3624official enamed divisorYintermediary comp_3625official f
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordprivate static classNested classes/interfaces inherited from interface net.minecraft.client.texture.atlas.AtlasSource
AtlasSource.SpriteRegions -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<UnstitchAtlasSource> private final doubleThe field for thedivisorXrecord component.private final doubleThe field for thedivisorYrecord component.(package private) static final Loggerprivate final List<UnstitchAtlasSource.Region> The field for theregionsrecord component.private final IdentifierThe field for theresourcerecord component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSource
RESOURCE_FINDER -
Constructor Summary
ConstructorsConstructorDescriptionUnstitchAtlasSource(Identifier resource, List<UnstitchAtlasSource.Region> regions, double divisorX, double divisorY) Creates an instance of aUnstitchAtlasSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledivisorX()Returns the value of thedivisorXrecord component.doubledivisorY()Returns the value of thedivisorYrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<UnstitchAtlasSource> getCodec()final inthashCode()Returns a hash code value for this object.voidload(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) regions()Returns the value of theregionsrecord component.resource()Returns the value of theresourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
resource
The field for theresourcerecord component. -
regions
The field for theregionsrecord component. -
divisorX
private final double divisorXThe field for thedivisorXrecord component. -
divisorY
private final double divisorYThe field for thedivisorYrecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/texture/atlas/UnstitchAtlasSource;LOGGER:Lorg/slf4j/Logger;intermediary field_41410Lnet/minecraft/class_7957;field_41410:Lorg/slf4j/Logger;official gLhle;g:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/texture/atlas/UnstitchAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_41409Lnet/minecraft/class_7957;field_41409:Lcom/mojang/serialization/MapCodec;official bLhle;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
UnstitchAtlasSource
public UnstitchAtlasSource(Identifier resource, List<UnstitchAtlasSource.Region> regions, double divisorX, double divisorY) Creates an instance of aUnstitchAtlasSourcerecord class.
-
-
Method Details
-
load
- Specified by:
loadin interfaceAtlasSource- Mappings:
Namespace Name Mixin selector named loadLnet/minecraft/client/texture/atlas/AtlasSource;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegions;)Vintermediary method_47673Lnet/minecraft/class_7948;method_47673(Lnet/minecraft/class_3300;Lnet/minecraft/class_7948$class_7949;)Vofficial aLhkv;a(Lavo;Lhkv$a;)V
-
getCodec
- Specified by:
getCodecin interfaceAtlasSource- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/client/texture/atlas/AtlasSource;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_67288Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;official aLhkv;a()Lcom/mojang/serialization/MapCodec;
-
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 '=='. -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
regions
Returns the value of theregionsrecord component.- Returns:
- the value of the
regionsrecord component
-
divisorX
public double divisorX()Returns the value of thedivisorXrecord component.- Returns:
- the value of the
divisorXrecord component
-
divisorY
public double divisorY()Returns the value of thedivisorYrecord component.- Returns:
- the value of the
divisorYrecord component
-