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
FieldsModifier and TypeFieldDescriptionprivate final StringThe field for thenamespacerecord component.private final PackTypeThe field for thepackTyperecord component.private final PathThe field for thepathrecord component.private final ResourceLocationThe field for theresourceLocationrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateResourceCacheEntry(PackType packType, String namespace, Path path, ResourceLocation resourceLocation) Creates an instance of aResourceCacheEntryrecord 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.Returns the value of thenamespacerecord component.packType()Returns the value of thepackTyperecord component.path()Returns the value of thepathrecord component.Returns the value of theresourceLocationrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
packType
The field for thepackTyperecord component. -
namespace
The field for thenamespacerecord component. -
path
The field for thepathrecord component. -
resourceLocation
The field for theresourceLocationrecord component.
-
-
Constructor Details
-
ResourceCacheEntry
private ResourceCacheEntry(PackType packType, String namespace, Path path, ResourceLocation resourceLocation) Creates an instance of aResourceCacheEntryrecord class.- Parameters:
packType- the value for thepackTyperecord componentnamespace- the value for thenamespacerecord componentpath- the value for thepathrecord componentresourceLocation- the value for theresourceLocationrecord 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 thepackTyperecord component.- Returns:
- the value of the
packTyperecord component
-
namespace
Returns the value of thenamespacerecord component.- Returns:
- the value of the
namespacerecord component
-
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-
resourceLocation
Returns the value of theresourceLocationrecord component.- Returns:
- the value of the
resourceLocationrecord component
-