Record Class BotOpenContainerEvent
java.lang.Object
java.lang.Record
com.soulfiremc.server.api.event.bot.BotOpenContainerEvent
- All Implemented Interfaces:
SoulFireBotEvent, SoulFireEvent, SoulFireGlobalEvent, SoulFireInstanceEvent
public record BotOpenContainerEvent(BotConnection connection, int containerId, String containerName, String containerType)
extends Record
implements SoulFireBotEvent
This event is called when the bot opens screen.
-
Constructor Summary
ConstructorsConstructorDescriptionBotOpenContainerEvent(BotConnection connection, int containerId, String containerName, String containerType) Creates an instance of aBotOpenContainerEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionrecord component.intReturns the value of thecontainerIdrecord component.Returns the value of thecontainerNamerecord component.Returns the value of thecontainerTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.Methods inherited from interface SoulFireBotEvent
instanceManagerMethods inherited from interface SoulFireInstanceEvent
soulFireServer
-
Constructor Details
-
BotOpenContainerEvent
public BotOpenContainerEvent(BotConnection connection, int containerId, String containerName, String containerType) Creates an instance of aBotOpenContainerEventrecord class.- Parameters:
connection- the value for theconnectionrecord componentcontainerId- the value for thecontainerIdrecord componentcontainerName- the value for thecontainerNamerecord componentcontainerType- the value for thecontainerTyperecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
connection
Returns the value of theconnectionrecord component.- Specified by:
connectionin interfaceSoulFireBotEvent- Returns:
- the value of the
connectionrecord component
-
containerId
public int containerId()Returns the value of thecontainerIdrecord component.- Returns:
- the value of the
containerIdrecord component
-
containerName
Returns the value of thecontainerNamerecord component.- Returns:
- the value of the
containerNamerecord component
-
containerType
Returns the value of thecontainerTyperecord component.- Returns:
- the value of the
containerTyperecord component
-