Class PlayerRightClickEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.PlayerRightClickEvent

public class PlayerRightClickEvent extends PlayerEvent
The PlayerRightClickEvent is our custom version of the PlayerInteractEvent. But it is only triggered on right click. The main and (almost) sole purpose of this Event is to cache the SlimefunItem of the ItemStack and/or Block involved. This allows us (and addons) to efficiently check the used SlimefunItem without the need to do a heavy lookup or item comparison.
Author:
TheBusyBiscuit