Record Class AttackBotRemoveEvent
java.lang.Object
java.lang.Record
com.soulfiremc.server.api.event.attack.AttackBotRemoveEvent
- Record Components:
instanceManager- the instance managerbotConnection- the bot connection
- All Implemented Interfaces:
SoulFireEvent, SoulFireGlobalEvent, SoulFireInstanceEvent
public record AttackBotRemoveEvent(InstanceManager instanceManager, BotConnection botConnection)
extends Record
implements SoulFireInstanceEvent
When a bot is not active anymore and gets removed from the list of active bots.
-
Constructor Summary
ConstructorsConstructorDescriptionAttackBotRemoveEvent(InstanceManager instanceManager, BotConnection botConnection) Creates an instance of aAttackBotRemoveEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebotConnectionrecord 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 theinstanceManagerrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SoulFireInstanceEvent
soulFireServer
-
Constructor Details
-
AttackBotRemoveEvent
Creates an instance of aAttackBotRemoveEventrecord class.- Parameters:
instanceManager- the value for theinstanceManagerrecord componentbotConnection- the value for thebotConnectionrecord 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). -
instanceManager
Returns the value of theinstanceManagerrecord component.- Specified by:
instanceManagerin interfaceSoulFireInstanceEvent- Returns:
- the value of the
instanceManagerrecord component
-
botConnection
Returns the value of thebotConnectionrecord component.- Returns:
- the value of the
botConnectionrecord component
-