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 SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionRegistryManagerEntry(RegistryKey<T> key, int rawId, T value) Creates an instance of aRegistryManagerEntryrecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.intrawId()Returns the value of therawIdrecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
- 
Field Details
- 
Constructor Details
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
keyReturns the value of thekeyrecord component.- Returns:
- the value of the keyrecord component
 
- 
rawIdpublic int rawId()Returns the value of therawIdrecord component.- Returns:
- the value of the rawIdrecord component
 
- 
valueReturns the value of thevaluerecord component.- Returns:
- the value of the valuerecord component
 
 
-