Package net.minecraft.registry
Record Class RegistryCodecs.RegistryManagerEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.registry.RegistryCodecs.RegistryManagerEntry<T>
- Record Components:
key
-rawId
-value
-
- Enclosing class:
RegistryCodecs
private static record RegistryCodecs.RegistryManagerEntry<T>(RegistryKey<T> key, int rawId, T value)
extends Record
- Mappings:
Namespace Name official ht$a
intermediary net/minecraft/class_6895$class_5501
named net/minecraft/registry/RegistryCodecs$RegistryManagerEntry
official a
intermediary comp_290
named key
official b
intermediary comp_291
named rawId
official c
intermediary comp_292
named value
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRegistryManagerEntry
(RegistryKey<T> key, int rawId, T value) Creates an instance of aRegistryManagerEntry
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.key()
Returns the value of thekey
record component.int
rawId()
Returns the value of therawId
record component.final String
toString()
Returns a string representation of this record class.value()
Returns the value of thevalue
record component.
-
Field Details
-
Constructor Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
rawId
public int rawId()Returns the value of therawId
record component.- Returns:
- the value of the
rawId
record component
-
value
Returns the value of thevalue
record component.- Returns:
- the value of the
value
record component
-