Package dev.latvian.mods.kubejs.recipe
Record Class CachedTagLookup.Entry<T>
java.lang.Object
java.lang.Record
dev.latvian.mods.kubejs.recipe.CachedTagLookup.Entry<T>
- Enclosing class:
CachedTagLookup<T>
public static record CachedTagLookup.Entry<T>(net.minecraft.resources.ResourceKey<T> key, net.minecraft.core.Registry<T> registry, CachedTagLookup<T> lookup)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionEntry(net.minecraft.resources.ResourceKey<T> key, net.minecraft.core.Registry<T> registry, CachedTagLookup<T> lookup) Creates an instance of aEntryrecord 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.net.minecraft.resources.ResourceKey<T> key()Returns the value of thekeyrecord component.lookup()Returns the value of thelookuprecord component.net.minecraft.core.Registry<T> registry()Returns the value of theregistryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Entry
public Entry(net.minecraft.resources.ResourceKey<T> key, net.minecraft.core.Registry<T> registry, CachedTagLookup<T> lookup) Creates an instance of aEntryrecord class.- Parameters:
key- the value for thekeyrecord componentregistry- the value for theregistryrecord componentlookup- the value for thelookuprecord 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). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
registry
Returns the value of theregistryrecord component.- Returns:
- the value of the
registryrecord component
-
lookup
Returns the value of thelookuprecord component.- Returns:
- the value of the
lookuprecord component
-