CustomEvent

public abstract class CustomEvent

Inheritors

Constructors

Link copied to clipboard
public void CustomEvent(CustomEventsConfigFields customEventsConfigFields)
Instantiates a Custom Event, does not necessarily start one but starts scanning for whether one should happen

Types

Link copied to clipboard
public enum EventType

Properties

Link copied to clipboard
Link copied to clipboard
public int currentDay
Link copied to clipboard
public List<String> endEventCommands
Link copied to clipboard
public String endMessage
Link copied to clipboard
public Location eventStartLocation
Link copied to clipboard
public float eventStartTime
Link copied to clipboard
Link copied to clipboard
public BukkitTask eventWatchdog
Link copied to clipboard
public List<String> primaryCustomBossFilenames
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public List<String> startEventCommands
Link copied to clipboard
public String startMessage

Functions

Link copied to clipboard
public void commonWatchdogBehavior()
Runs checks that are common to all event types
Link copied to clipboard
public void end()
Starts the end of the event, deletes all EliteMobEntities spawned by the event and queues further event completion requirements
Link copied to clipboard
public abstract void endModifiers()
Gets called by the end() method, completes any extension-specific behavior for the end of the event, such as implementing cooldowns or doing announcements.
Link copied to clipboard
public abstract void eventWatchdog()
Checks whether the conditions for the event to end have been met
Link copied to clipboard
public Location getEventStartLocation()
Link copied to clipboard
public List<String> getPrimaryCustomBossFilenames()
Link copied to clipboard
public static boolean isLocationValid(Location location)
Link copied to clipboard
public void setEventStartLocation(Location eventStartLocation)
Link copied to clipboard
public void setPrimaryCustomBossFilenames(List<String> primaryCustomBossFilenames)
Link copied to clipboard
public void start()
Starts a Custom Event watchdog, which will scan whether the event is still ongoing or if it has ended every second
Link copied to clipboard
public abstract void startModifiers()