Class AsyncPlayerCycleButtonEvent
java.lang.Object
org.bukkit.event.Event
xyz.gmitch215.socketmc.events.SocketEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerElementEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerClickButtonEvent
xyz.gmitch215.socketmc.events.screen.AsyncPlayerCycleButtonEvent
Called when a player cycles through a 
CycleButton with multiple states.- 
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result - 
Constructor Summary
ConstructorsConstructorDescriptionAsyncPlayerCycleButtonEvent(@NotNull CycleButton<T> element, T newValue, @NotNull AbstractScreen screen, @NotNull SocketPlayer player) Constructs a new AsyncPlayerCycleButtonEvent. - 
Method Summary
Modifier and TypeMethodDescriptionCycleButton<?> Gets the button that was clicked.Gets the new value that the player selected.Methods inherited from class xyz.gmitch215.socketmc.events.screen.AsyncPlayerScreenEvent
getScreenMethods inherited from class xyz.gmitch215.socketmc.events.SocketEvent
getHandlerList, getHandlers, getPlayer, getSocketPlayer, toStringMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous 
- 
Constructor Details
- 
AsyncPlayerCycleButtonEvent
public AsyncPlayerCycleButtonEvent(@NotNull @NotNull CycleButton<T> element, @NotNull T newValue, @NotNull @NotNull AbstractScreen screen, @NotNull @NotNull SocketPlayer player) Constructs a new AsyncPlayerCycleButtonEvent.- Type Parameters:
 T- The type of the element.- Parameters:
 element- The element that the player cycled.newValue- The new value that the player selected.screen- The screen that the element is on.player- The player that edited the element.
 
 - 
 - 
Method Details
- 
getElement
Description copied from class:AsyncPlayerClickButtonEventGets the button that was clicked.- Overrides:
 getElementin classAsyncPlayerClickButtonEvent- Returns:
 - The button that was clicked
 
 - 
getNewValue
Gets the new value that the player selected.- Returns:
 - The new value.
 
 
 -