Record Class DirectoryAtlasSource
java.lang.Object
java.lang.Record
net.minecraft.client.texture.atlas.DirectoryAtlasSource
- Record Components:
sourcePath-idPrefix-
- All Implemented Interfaces:
AtlasSource
@Environment(CLIENT)
public record DirectoryAtlasSource(String sourcePath, String idPrefix)
extends Record
implements AtlasSource
- Mappings:
Namespace Name named net/minecraft/client/texture/atlas/DirectoryAtlasSourceintermediary net/minecraft/class_7954official hkznamed sourcePathintermediary comp_3613official cnamed idPrefixintermediary comp_3614official 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<DirectoryAtlasSource> private final StringThe field for theidPrefixrecord component.private final StringThe field for thesourcePathrecord component.Fields inherited from interface net.minecraft.client.texture.atlas.AtlasSource
RESOURCE_FINDER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<DirectoryAtlasSource> getCodec()final inthashCode()Returns a hash code value for this object.idPrefix()Returns the value of theidPrefixrecord component.voidload(ResourceManager resourceManager, AtlasSource.SpriteRegions regions) Returns the value of thesourcePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
sourcePath
The field for thesourcePathrecord component. -
idPrefix
The field for theidPrefixrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/client/texture/atlas/DirectoryAtlasSource;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_41399Lnet/minecraft/class_7954;field_41399:Lcom/mojang/serialization/MapCodec;official bLhkz;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DirectoryAtlasSource
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/texture/atlas/DirectoryAtlasSource;<init>(Ljava/lang/String;Ljava/lang/String;)Vintermediary <init>Lnet/minecraft/class_7954;<init>(Ljava/lang/String;Ljava/lang/String;)Vofficial <init>Lhkz;<init>(Ljava/lang/String;Ljava/lang/String;)V
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
sourcePath
Returns the value of thesourcePathrecord component.- Returns:
- the value of the
sourcePathrecord component
-
idPrefix
Returns the value of theidPrefixrecord component.- Returns:
- the value of the
idPrefixrecord component
-