Class EvtFish
java.lang.Object
org.skriptlang.skript.lang.structure.Structure
ch.njol.skript.lang.SkriptEvent
org.skriptlang.skript.bukkit.fishing.elements.EvtFish
- All Implemented Interfaces:
Debuggable,SyntaxElement
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.njol.skript.lang.SkriptEvent
SkriptEvent.ListeningBehaviorNested classes/interfaces inherited from class org.skriptlang.skript.lang.structure.Structure
Structure.Priority, Structure.StructureData -
Field Summary
Fields inherited from class ch.njol.skript.lang.SkriptEvent
eventPriority, listeningBehavior, PRIORITY, supportsListeningBehavior, triggerFields inherited from class org.skriptlang.skript.lang.structure.Structure
DEFAULT_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(org.bukkit.event.Event event) Checks whether the given Event applies, e.g.booleaninit(Literal<?>[] args, int matchedPattern, SkriptParser.ParseResult parseResult) Called just after the constructortoString(@Nullable org.bukkit.event.Event event, boolean debug) Methods inherited from class ch.njol.skript.lang.SkriptEvent
canExecuteAsynchronously, fixPattern, getEventClasses, getEventPriority, getListeningBehavior, getPriority, init, isEventPrioritySupported, isListeningBehaviorSupported, load, parse, postLoad, postUnload, preLoad, shouldLoadEvent, unloadMethods inherited from class org.skriptlang.skript.lang.structure.Structure
getEntryContainer, getSyntaxTypeName, init, parse, parse, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, preInit
-
Constructor Details
-
EvtFish
public EvtFish()
-
-
Method Details
-
init
Description copied from class:SkriptEventCalled just after the constructor- Specified by:
initin classSkriptEvent
-
check
public boolean check(org.bukkit.event.Event event) Description copied from class:SkriptEventChecks whether the given Event applies, e.g. the left-click event is only part of the PlayerInteractEvent, and this checks whether the player left-clicked or not. This method will only be called for events this SkriptEvent is registered for.- Specified by:
checkin classSkriptEvent- Returns:
- true if this is SkriptEvent is represented by the Bukkit Event or false if not
-
toString
- Parameters:
event- The event to get information from. This is always null if debug == false.debug- If true this should print more information, if false this should print what is shown to the end user- Returns:
- String representation of this object
-