Package net.minecraftforge.resource
Record Class ResourceCacheManager.ResourceCacheEntry
java.lang.Object
java.lang.Record
net.minecraftforge.resource.ResourceCacheManager.ResourceCacheEntry
- Record Components:
packType
- The pack type that the resource resides in.namespace
- The namespace that the resource resides in.path
- The path in the pack that the resource resides in.resourceLocation
- The resource location for the resource.
- Enclosing class:
- ResourceCacheManager
private static record ResourceCacheManager.ResourceCacheEntry(PackType packType, String namespace, Path path, ResourceLocation resourceLocation)
extends Record
Record for the individual cache entries.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final String
The field for thenamespace
record component.private final PackType
The field for thepackType
record component.private final Path
The field for thepath
record component.private final ResourceLocation
The field for theresourceLocation
record component. -
Constructor Summary
ModifierConstructorDescriptionprivate
ResourceCacheEntry
(PackType packType, String namespace, Path path, ResourceLocation resourceLocation) Creates an instance of aResourceCacheEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenamespace
record component.packType()
Returns the value of thepackType
record component.path()
Returns the value of thepath
record component.Returns the value of theresourceLocation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
packType
The field for thepackType
record component. -
namespace
The field for thenamespace
record component. -
path
The field for thepath
record component. -
resourceLocation
The field for theresourceLocation
record component.
-
-
Constructor Details
-
ResourceCacheEntry
private ResourceCacheEntry(PackType packType, String namespace, Path path, ResourceLocation resourceLocation) Creates an instance of aResourceCacheEntry
record class.- Parameters:
packType
- the value for thepackType
record componentnamespace
- the value for thenamespace
record componentpath
- the value for thepath
record componentresourceLocation
- the value for theresourceLocation
record component
-
-
Method Details
-
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)
. -
packType
Returns the value of thepackType
record component.- Returns:
- the value of the
packType
record component
-
namespace
Returns the value of thenamespace
record component.- Returns:
- the value of the
namespace
record component
-
path
Returns the value of thepath
record component.- Returns:
- the value of the
path
record component
-
resourceLocation
Returns the value of theresourceLocation
record component.- Returns:
- the value of the
resourceLocation
record component
-