PropScriptListener

public class PropScriptListener implements Listener

Manages the mapping between props and their script instances. Event dispatch is handled through the OBB hit detection system via onPropLeftClick and onPropRightClick.

Constructors

Link copied to clipboard
public void PropScriptListener()

Properties

Link copied to clipboard
public final Map<PropEntity, List<ScriptInstance>> scriptedProps

Functions

Link copied to clipboard
Link copied to clipboard
public void register(PropEntity prop, ScriptInstance instance)
Registers a prop with an active script instance.
Link copied to clipboard
public void shutdownAll()
Shuts down all tracked script instances and clears the map.
Link copied to clipboard
public void unregister(PropEntity prop)
Unregisters a prop and shuts down all its script instances.