Record Class SingleAtlasSource
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.SingleAtlasSource
- Record Components:
- resourceId-
- spriteId-
- All Implemented Interfaces:
- AtlasSource
@Environment(CLIENT)
public record SingleAtlasSource(Identifier resourceId, Optional<Identifier> spriteId)
extends Record
implements AtlasSource
- Mappings:
- Namespace - Name - named - net/minecraft/client/texture/atlas/SingleAtlasSource- intermediary - net/minecraft/class_7955- official - hlc- named - resourceId- intermediary - comp_3619- official - c- named - spriteId- intermediary - comp_3620- official - d
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.texture.atlas.AtlasSourceAtlasSource.SpriteRegion, AtlasSource.SpriteRegions
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<SingleAtlasSource> private static final Loggerprivate final IdentifierThe field for theresourceIdrecord component.private final Optional<Identifier> The field for thespriteIdrecord component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSourceRESOURCE_FINDER
- 
Constructor SummaryConstructorsConstructorDescriptionSingleAtlasSource(Identifier resourceId) SingleAtlasSource(Identifier resource, Optional<Identifier> sprite) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<SingleAtlasSource> getCodec()final inthashCode()Returns a hash code value for this object.voidload(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) Returns the value of theresourceIdrecord component.spriteId()Returns the value of thespriteIdrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
resourceIdThe field for theresourceIdrecord component.
- 
spriteIdThe field for thespriteIdrecord component.
- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - named - LOGGER- Lnet/minecraft/client/texture/atlas/SingleAtlasSource;LOGGER:Lorg/slf4j/Logger;- intermediary - field_41403- Lnet/minecraft/class_7955;field_41403:Lorg/slf4j/Logger;- official - e- Lhlc;e:Lorg/slf4j/Logger;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/client/texture/atlas/SingleAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_41402- Lnet/minecraft/class_7955;field_41402:Lcom/mojang/serialization/MapCodec;- official - b- Lhlc;b:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
SingleAtlasSource- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/texture/atlas/SingleAtlasSource;<init>(Lnet/minecraft/util/Identifier;)V- intermediary - <init>- Lnet/minecraft/class_7955;<init>(Lnet/minecraft/class_2960;)V- official - <init>- Lhlc;<init>(Lalr;)V
 
- 
SingleAtlasSource- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/texture/atlas/SingleAtlasSource;<init>(Lnet/minecraft/util/Identifier;Ljava/util/Optional;)V- intermediary - <init>- Lnet/minecraft/class_7955;<init>(Lnet/minecraft/class_2960;Ljava/util/Optional;)V- official - <init>- Lhlc;<init>(Lalr;Ljava/util/Optional;)V
 
 
- 
- 
Method Details- 
load- Specified by:
- loadin interface- AtlasSource
- 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- Lhkv;a(Lavo;Lhkv$a;)V
 
- 
getCodec- Specified by:
- getCodecin interface- AtlasSource
- 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- Lhkv;a()Lcom/mojang/serialization/MapCodec;
 
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
resourceIdReturns the value of theresourceIdrecord component.- Returns:
- the value of the resourceIdrecord component
 
- 
spriteIdReturns the value of thespriteIdrecord component.- Returns:
- the value of the spriteIdrecord component
 
 
-