Record Class EntityFishHookSpawnEvent
java.lang.Object
java.lang.Record
com.zenith.event.module.EntityFishHookSpawnEvent
-
Constructor Summary
ConstructorsConstructorDescriptionEntityFishHookSpawnEvent(EntityStandard fishHookObject) Creates an instance of aEntityFishHookSpawnEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefishHookObjectrecord component.intfinal inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EntityFishHookSpawnEvent
Creates an instance of aEntityFishHookSpawnEventrecord class.- Parameters:
fishHookObject- the value for thefishHookObjectrecord component
-
-
Method Details
-
getProjectileData
-
getOwnerEntityId
public int getOwnerEntityId() -
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). -
fishHookObject
Returns the value of thefishHookObjectrecord component.- Returns:
- the value of the
fishHookObjectrecord component
-