Interface EffectEventContext


@NonExtendable public interface EffectEventContext
Context for mob effect events.
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable String
     
    boolean
     
  • Method Details

    • isFromCommand

      boolean isFromCommand()
      Returns:
      whether the caller of the event is a command
    • commandName

      @Nullable String commandName()
      Returns:
      the name of the command the event was called in or null if isFromCommand() returns false