Record Class InteractionManager.InteractionStats
java.lang.Object
java.lang.Record
group.worldstandard.pudel.api.interaction.InteractionManager.InteractionStats
- Enclosing interface:
InteractionManager
public static record InteractionManager.InteractionStats(int slashCommandCount, int contextMenuCount, int buttonHandlerCount, int selectMenuHandlerCount, int modalHandlerCount, int autoCompleteHandlerCount)
extends Record
Statistics about registered interaction handlers.
-
Constructor Summary
ConstructorsConstructorDescriptionInteractionStats(int slashCommandCount, int contextMenuCount, int buttonHandlerCount, int selectMenuHandlerCount, int modalHandlerCount, int autoCompleteHandlerCount) Creates an instance of aInteractionStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theautoCompleteHandlerCountrecord component.intReturns the value of thebuttonHandlerCountrecord component.intReturns the value of thecontextMenuCountrecord 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 themodalHandlerCountrecord component.intReturns the value of theselectMenuHandlerCountrecord component.intReturns the value of theslashCommandCountrecord component.final StringtoString()Returns a string representation of this record class.int
-
Constructor Details
-
InteractionStats
public InteractionStats(int slashCommandCount, int contextMenuCount, int buttonHandlerCount, int selectMenuHandlerCount, int modalHandlerCount, int autoCompleteHandlerCount) Creates an instance of aInteractionStatsrecord class.- Parameters:
slashCommandCount- the value for theslashCommandCountrecord componentcontextMenuCount- the value for thecontextMenuCountrecord componentbuttonHandlerCount- the value for thebuttonHandlerCountrecord componentselectMenuHandlerCount- the value for theselectMenuHandlerCountrecord componentmodalHandlerCount- the value for themodalHandlerCountrecord componentautoCompleteHandlerCount- the value for theautoCompleteHandlerCountrecord component
-
-
Method Details
-
totalHandlers
public int totalHandlers() -
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. -
slashCommandCount
public int slashCommandCount()Returns the value of theslashCommandCountrecord component.- Returns:
- the value of the
slashCommandCountrecord component
-
contextMenuCount
public int contextMenuCount()Returns the value of thecontextMenuCountrecord component.- Returns:
- the value of the
contextMenuCountrecord component
-
buttonHandlerCount
public int buttonHandlerCount()Returns the value of thebuttonHandlerCountrecord component.- Returns:
- the value of the
buttonHandlerCountrecord component
-
selectMenuHandlerCount
public int selectMenuHandlerCount()Returns the value of theselectMenuHandlerCountrecord component.- Returns:
- the value of the
selectMenuHandlerCountrecord component
-
modalHandlerCount
public int modalHandlerCount()Returns the value of themodalHandlerCountrecord component.- Returns:
- the value of the
modalHandlerCountrecord component
-
autoCompleteHandlerCount
public int autoCompleteHandlerCount()Returns the value of theautoCompleteHandlerCountrecord component.- Returns:
- the value of the
autoCompleteHandlerCountrecord component
-