Package net.minecraft.util.registry
Record Class SimpleRegistry.RegistryManagerEntry<T>
java.lang.Object
java.lang.Record
net.minecraft.util.registry.SimpleRegistry.RegistryManagerEntry<T>
- Record Components:
key
-rawId
-entry
-
- Enclosing class:
- SimpleRegistry<T>
private static record SimpleRegistry.RegistryManagerEntry<T>(RegistryKey<T> key, int rawId, T entry)
extends Record
- Mappings:
Namespace Name official gs$a
intermediary net/minecraft/class_2370$class_5501
named net/minecraft/util/registry/SimpleRegistry$RegistryManagerEntry
official a
intermediary comp_290
named key
official b
intermediary comp_291
named rawId
official c
intermediary comp_292
named entry
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRegistryManagerEntry
(RegistryKey<T> key, int rawId, T entry) Creates an instance of aRegistryManagerEntry
record class. -
Method Summary
Modifier and TypeMethodDescriptionentry()
Returns the value of theentry
record component.final 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.
-
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
-
entry
Returns the value of theentry
record component.- Returns:
- the value of the
entry
record component
-