ScriptZone

public class ScriptZone

Represents a zone defined in an EliteScript, handling shape generation, entity retrieval, and triggering events when entities enter or leave the zone.

Constructors

Link copied to clipboard
public void ScriptZone(ScriptZoneBlueprint zoneBlueprint, ScriptRuntimeOwner runtimeOwner)
Constructs a new ScriptZone based on the given blueprint and script.

Properties

Link copied to clipboard
public final boolean isValid
Indicates whether the zone is valid (i.e., has at least one target).
Link copied to clipboard
The blueprint defining this script zone.

Functions

Link copied to clipboard
public List<Shape> generateShapes(ScriptActionData scriptActionData, boolean force)
Generates shapes that define the zone based on the script action data.
Link copied to clipboard
The blueprint defining this script zone.
Link copied to clipboard
protected Collection<LivingEntity> getZoneEntities(ScriptActionData scriptActionData, ScriptTargetsBlueprint blueprintFromRequestingTarget)
Retrieves living entities within the zone based on the provided script action data and target blueprint.
Link copied to clipboard
protected Collection<Location> getZoneLocations(ScriptActionData scriptActionData, ScriptTargets actionTarget)
Retrieves locations within the zone based on the provided script action data and target.
Link copied to clipboard
public boolean isValid()
Indicates whether the zone is valid (i.e., has at least one target).
Link copied to clipboard
public void setZoneListener(boolean zoneListener)
Whether this zone should listen for entities entering and leaving.
Link copied to clipboard
public void shutdown()
Stops this zone's owned listener immediately during actor rollback or removal.
Link copied to clipboard
public void startZoneListener(EliteEntity eliteEntity)
Starts a zone listener that monitors entities entering or leaving the zone.
Link copied to clipboard
public void zoneEnterEvent(EliteEntity eliteEntity, LivingEntity livingEntity)
Triggers a ScriptZoneEnterEvent when a living entity enters the zone.
Link copied to clipboard
public void zoneLeaveEvent(EliteEntity eliteEntity, LivingEntity livingEntity)
Triggers a ScriptZoneLeaveEvent when a living entity leaves the zone.