Record Class RadioGroupSelectEvent
java.lang.Object
java.lang.Record
com.botwithus.bot.api.event.RadioGroupSelectEvent
- Record Components:
interfaceId- the owning interface idcomponentId- the component id within the interfacesubId- the sub-component id, or-1when nonevalue- component-derived secondary id, or-1when noneopcode- the outbound ClientProt opcode for the chosen optiontimestamp- event creation time in milliseconds since epoch
- All Implemented Interfaces:
GameEvent
public record RadioGroupSelectEvent(int interfaceId, int componentId, int subId, int value, int opcode, long timestamp)
extends Record
implements GameEvent
Fired when a radio-group option is selected, observed on the producer's
outbound
SendRadioButton packet builder. Covers both manual (player)
selections and bot-driven ones queued as a RadioGroupSelect action.
A radio select does not ride the normal MiniMenu action packet — the
producer hooks the dedicated packet builder and republishes each selection
here. interfaceId/componentId identify the radio-group
component; subId is the sub-component id (-1 when none);
value is a component-derived secondary id (-1 in practice for
a plain select); opcode is the resolved ClientProt id, which encodes
which option index was chosen.
-
Constructor Summary
ConstructorsConstructorDescriptionRadioGroupSelectEvent(int interfaceId, int componentId, int subId, int value, int opcode) RadioGroupSelectEvent(int interfaceId, int componentId, int subId, int value, int opcode, long timestamp) Creates an instance of aRadioGroupSelectEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecomponentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of theinterfaceIdrecord component.intopcode()Returns the value of theopcoderecord component.intsubId()Returns the value of thesubIdrecord component.longReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.intvalue()Returns the value of thevaluerecord component.
-
Constructor Details
-
RadioGroupSelectEvent
public RadioGroupSelectEvent(int interfaceId, int componentId, int subId, int value, int opcode) -
RadioGroupSelectEvent
public RadioGroupSelectEvent(int interfaceId, int componentId, int subId, int value, int opcode, long timestamp) Creates an instance of aRadioGroupSelectEventrecord class.- Parameters:
interfaceId- the value for theinterfaceIdrecord componentcomponentId- the value for thecomponentIdrecord componentsubId- the value for thesubIdrecord componentvalue- the value for thevaluerecord componentopcode- the value for theopcoderecord componenttimestamp- the value for thetimestamprecord 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 with thecomparemethod from their corresponding wrapper classes. -
interfaceId
public int interfaceId()Returns the value of theinterfaceIdrecord component.- Returns:
- the value of the
interfaceIdrecord component
-
componentId
public int componentId()Returns the value of thecomponentIdrecord component.- Returns:
- the value of the
componentIdrecord component
-
subId
-
value
-
opcode
-
timestamp
-