Record Class SingleAtlasSource
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.SingleAtlasSource
- Record Components:
resource-sprite-
- All Implemented Interfaces:
AtlasSource
@Environment(CLIENT)
public record SingleAtlasSource(Identifier resource, Optional<Identifier> sprite)
extends Record
implements AtlasSource
- Mappings:
Namespace Name named net/minecraft/client/texture/atlas/SingleAtlasSourceintermediary net/minecraft/class_7955official hilnamed resourceintermediary comp_3619official cnamed spriteintermediary comp_3620official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.texture.atlas.AtlasSource
AtlasSource.SpriteRegion, AtlasSource.SpriteRegions -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SingleAtlasSource> private static final Loggerprivate final IdentifierThe field for theresourcerecord component.private final Optional<Identifier> The field for thespriterecord component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSource
RESOURCE_FINDER -
Constructor Summary
ConstructorsConstructorDescriptionSingleAtlasSource(Identifier identifier) SingleAtlasSource(Identifier resource, Optional<Identifier> sprite) Creates an instance of aSingleAtlasSourcerecord class. -
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.voidload(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) com.mojang.serialization.MapCodec<SingleAtlasSource> resource()Returns the value of theresourcerecord component.sprite()Returns the value of thespriterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
resource
The field for theresourcerecord component. -
sprite
The field for thespriterecord component. -
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGERLnet/minecraft/client/texture/atlas/SingleAtlasSource;LOGGER:Lorg/slf4j/Logger;intermediary field_41403Lnet/minecraft/class_7955;field_41403:Lorg/slf4j/Logger;official eLhil;e:Lorg/slf4j/Logger;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/texture/atlas/SingleAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_41402Lnet/minecraft/class_7955;field_41402:Lcom/mojang/serialization/MapCodec;official bLhil;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
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 aLhie;a(Lavb;Lhie$a;)V
-
method_67288
- Specified by:
method_67288in interfaceAtlasSource- Mappings:
Namespace Name Mixin selector named method_67288Lnet/minecraft/client/texture/atlas/AtlasSource;method_67288()Lcom/mojang/serialization/MapCodec;intermediary method_67288Lnet/minecraft/class_7948;method_67288()Lcom/mojang/serialization/MapCodec;official aLhie;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. All components in this record class are compared withObjects::equals(Object,Object). -
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
sprite
Returns the value of thespriterecord component.- Returns:
- the value of the
spriterecord component
-