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

    Constructors
    Constructor
    Description
    Used for handling custom drops only currently, but you can use this for whatever you need.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LuaEntityDeathEvent

      public LuaEntityDeathEvent(LuaEntity luaEntity)
      Used for handling custom drops only currently, but you can use this for whatever you need.
      Parameters:
      luaEntity - The LuaEntity 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 interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event