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/UnstitchAtlasSource
intermediary net/minecraft/class_7957
official hsg
named resource
intermediary comp_3622
official c
named regions
intermediary comp_3623
official d
named divisorX
intermediary comp_3624
official e
named divisorY
intermediary comp_3625
official f
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
private static class
Nested 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 double
The field for thedivisorX
record component.private final double
The field for thedivisorY
record component.(package private) static final Logger
private final List
<UnstitchAtlasSource.Region> The field for theregions
record component.private final Identifier
The field for theresource
record 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 aUnstitchAtlasSource
record class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
divisorX()
Returns the value of thedivisorX
record component.double
divisorY()
Returns the value of thedivisorY
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<UnstitchAtlasSource> getCodec()
final int
hashCode()
Returns a hash code value for this object.void
load
(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) regions()
Returns the value of theregions
record component.resource()
Returns the value of theresource
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
resource
The field for theresource
record component. -
regions
The field for theregions
record component. -
divisorX
private final double divisorXThe field for thedivisorX
record component. -
divisorY
private final double divisorYThe field for thedivisorY
record component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/texture/atlas/UnstitchAtlasSource;LOGGER:Lorg/slf4j/Logger;
intermediary field_41410
Lnet/minecraft/class_7957;field_41410:Lorg/slf4j/Logger;
official g
Lhsg;g:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/client/texture/atlas/UnstitchAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_41409
Lnet/minecraft/class_7957;field_41409:Lcom/mojang/serialization/MapCodec;
official b
Lhsg;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
UnstitchAtlasSource
public UnstitchAtlasSource(Identifier resource, List<UnstitchAtlasSource.Region> regions, double divisorX, double divisorY) Creates an instance of aUnstitchAtlasSource
record class.
-
-
Method Details
-
load
- Specified by:
load
in interfaceAtlasSource
- Mappings:
Namespace Name Mixin selector named load
Lnet/minecraft/client/texture/atlas/AtlasSource;load(Lnet/minecraft/resource/ResourceManager;Lnet/minecraft/client/texture/atlas/AtlasSource$SpriteRegions;)V
intermediary method_47673
Lnet/minecraft/class_7948;method_47673(Lnet/minecraft/class_3300;Lnet/minecraft/class_7948$class_7949;)V
official a
Lhrx;a(Laxo;Lhrx$a;)V
-
getCodec
- Specified by:
getCodec
in interfaceAtlasSource
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/client/texture/atlas/AtlasSource;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_67288
Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;
official a
Lhrx;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 theresource
record component.- Returns:
- the value of the
resource
record component
-
regions
Returns the value of theregions
record component.- Returns:
- the value of the
regions
record component
-
divisorX
public double divisorX()Returns the value of thedivisorX
record component.- Returns:
- the value of the
divisorX
record component
-
divisorY
public double divisorY()Returns the value of thedivisorY
record component.- Returns:
- the value of the
divisorY
record component
-