Record Class EntityRegistry.Definition
java.lang.Object
java.lang.Record
net.rebel459.unified.impl.data.registry.EntityRegistry.Definition
- Enclosing class:
EntityRegistry
public static record EntityRegistry.Definition(EntityRegistry.Base base, EntityRegistry.Properties properties, MobVariants.Definition variantProperties)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDefinition(EntityRegistry.Base base, EntityRegistry.Properties properties, MobVariants.Definition variantProperties) Creates an instance of aDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbase()Returns the value of thebaserecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepropertiesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevariantPropertiesrecord component.
-
Constructor Details
-
Definition
public Definition(EntityRegistry.Base base, EntityRegistry.Properties properties, MobVariants.Definition variantProperties) Creates an instance of aDefinitionrecord class.- Parameters:
base- the value for thebaserecord componentproperties- the value for thepropertiesrecord componentvariantProperties- the value for thevariantPropertiesrecord component
-
-
Method Details
-
toString
-
hashCode
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
base
Returns the value of thebaserecord component.- Returns:
- the value of the
baserecord component
-
properties
Returns the value of thepropertiesrecord component.- Returns:
- the value of the
propertiesrecord component
-
variantProperties
Returns the value of thevariantPropertiesrecord component.- Returns:
- the value of the
variantPropertiesrecord component
-