Package dev.selena.luacore
Class LuaEntityDeathEvent
java.lang.Object
org.bukkit.event.Event
dev.selena.luacore.LuaEntityDeathEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class LuaEntityDeathEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
Used for handling custom drops only currently, but you can use this for whatever you need.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionLuaEntityDeathEvent
(LuaEntity luaEntity) Used for handling custom drops only currently, but you can use this for whatever you need. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doDrops()
So long as the event isn't canceled, you will not need to call this method.@NotNull org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
LuaEntityDeathEvent
Used for handling custom drops only currently, but you can use this for whatever you need.- Parameters:
luaEntity
- TheLuaEntity
you are dealing with
-
-
Method Details
-
doDrops
public void doDrops()So long as the event isn't canceled, you will not need to call this method. -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-