Uses of Enum Class
org.bukkit.event.Event.Result
Package
Description
Classes dedicated to handling triggered code executions.
-
Uses of Event.Result in org.bukkit.event
Modifier and TypeMethodDescriptionstatic Event.Result
Returns the enum constant of this class with the specified name.static Event.Result[]
Event.Result.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of Event.Result in org.bukkit.event.inventory
Modifier and TypeMethodDescriptionInventoryInteractEvent.getResult()
Gets theEvent.Result
of this event.Modifier and TypeMethodDescriptionvoid
InventoryInteractEvent.setResult(@NotNull Event.Result newResult)
Sets the result of this event. -
Uses of Event.Result in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerBedEnterEvent.useBed()
This controls the action to take with the bed that was clicked on.PlayerInteractEvent.useInteractedBlock()
This controls the action to take with the block (if any) that was clicked on.PlayerInteractEvent.useItemInHand()
This controls the action to take with the item the player is holding.Modifier and TypeMethodDescriptionvoid
PlayerBedEnterEvent.setUseBed(@NotNull Event.Result useBed)
Sets the action to take with the interacted bed.void
PlayerInteractEvent.setUseInteractedBlock(@NotNull Event.Result useInteractedBlock)
void
PlayerInteractEvent.setUseItemInHand(@NotNull Event.Result useItemInHand)