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$aintermediary net/minecraft/class_2370$class_5501named net/minecraft/util/registry/SimpleRegistry$RegistryManagerEntryofficial aintermediary comp_290named keyofficial bintermediary comp_291named rawIdofficial cintermediary comp_292named entry
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRegistryManagerEntry(RegistryKey<T> key, int rawId, T entry) Creates an instance of aRegistryManagerEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionentry()Returns the value of theentryrecord component.final 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.
-
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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
rawId
public int rawId()Returns the value of therawIdrecord component.- Returns:
- the value of the
rawIdrecord component
-
entry
Returns the value of theentryrecord component.- Returns:
- the value of the
entryrecord component
-