Record Class ObjectHolderDefinalize.VanillaObjectHolderData
java.lang.Object
java.lang.Record
net.minecraftforge.fml.common.asm.ObjectHolderDefinalize.VanillaObjectHolderData
- Enclosing class:
- ObjectHolderDefinalize
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprivateVanillaObjectHolderData(String holderClass, String registryName, String registryType) Creates an instance of aVanillaObjectHolderDatarecord 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.Returns the value of theholderClassrecord component.Returns the value of theregistryNamerecord component.Returns the value of theregistryTyperecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
holderClassThe field for theholderClassrecord component.
- 
registryNameThe field for theregistryNamerecord component.
- 
registryTypeThe field for theregistryTyperecord component.
 
- 
- 
Constructor Details- 
VanillaObjectHolderDataCreates an instance of aVanillaObjectHolderDatarecord class.- Parameters:
- holderClass- the value for the- holderClassrecord component
- registryName- the value for the- registryNamerecord component
- registryType- the value for the- registryTyperecord component
 
 
- 
- 
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. All components in this record class are compared withObjects::equals(Object,Object).
- 
holderClassReturns the value of theholderClassrecord component.- Returns:
- the value of the holderClassrecord component
 
- 
registryNameReturns the value of theregistryNamerecord component.- Returns:
- the value of the registryNamerecord component
 
- 
registryTypeReturns the value of theregistryTyperecord component.- Returns:
- the value of the registryTyperecord component
 
 
-