public class NPCOpenGateEvent extends NPCEvent implements org.bukkit.event.Cancellable
Constructor and Description |
---|
NPCOpenGateEvent(NPC npc,
org.bukkit.block.Block block) |
Modifier and Type | Method and Description |
---|---|
org.bukkit.block.Block |
getGate()
Returns the
Block that was opened. |
static org.bukkit.event.HandlerList |
getHandlerList() |
org.bukkit.event.HandlerList |
getHandlers() |
boolean |
isCancelled() |
void |
setCancelled(boolean arg0) |
public NPCOpenGateEvent(NPC npc, org.bukkit.block.Block block)
public org.bukkit.block.Block getGate()
Block
that was opened.public org.bukkit.event.HandlerList getHandlers()
getHandlers
in class org.bukkit.event.Event
public boolean isCancelled()
isCancelled
in interface org.bukkit.event.Cancellable
public void setCancelled(boolean arg0)
setCancelled
in interface org.bukkit.event.Cancellable
public static org.bukkit.event.HandlerList getHandlerList()
Copyright © 2021. All rights reserved.