public abstract class AbstractLocationBasedTriggerManager<T extends Trigger> extends AbstractTaggedTriggerManager<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractLocationBasedTriggerManager.ClickHandler |
static class |
AbstractLocationBasedTriggerManager.ClickTrigger |
static class |
AbstractLocationBasedTriggerManager.WalkTrigger |
AbstractTriggerManager.TriggerFilter, AbstractTriggerManager.TriggerInitFailedException| Modifier and Type | Field and Description |
|---|---|
protected Map<SimpleChunkLocation,Map<SimpleLocation,T>> |
chunkMap |
configSourceFactory, folder, loader| Constructor and Description |
|---|
AbstractLocationBasedTriggerManager(TriggerReactorCore plugin,
File folder,
ITriggerLoader<T> loader) |
extractPrefixget, getAllTriggers, getFolder, getTriggerFile, getTriggerInfos, getTriggerList, has, put, reload, remove, reportWarnings, saveAlldisable, getManagersprotected final Map<SimpleChunkLocation,Map<SimpleLocation,T extends Trigger>> chunkMap
public AbstractLocationBasedTriggerManager(TriggerReactorCore plugin, File folder, ITriggerLoader<T> loader)
public void reload()
Managerreload in class AbstractTriggerManager<T extends Trigger>protected abstract String getTriggerTypeName()
protected T getTriggerForLocation(SimpleLocation sloc)
protected void setLocationCache(SimpleLocation sloc, T trigger)
protected T removeLocationCache(SimpleLocation sloc)
protected abstract T newTrigger(TriggerInfo info, String script) throws AbstractTriggerManager.TriggerInitFailedException
protected abstract void showTriggerInfo(ICommandSender sender, SimpleLocation sloc)
protected boolean isLocationSetting(IPlayer player)
protected boolean stopLocationSet(IPlayer player)
protected void onItemSwap(IPlayer player)
protected boolean cutTrigger(IPlayer player, SimpleLocation sloc)
player - sloc - protected boolean copyTrigger(IPlayer player, SimpleLocation sloc)
player - sloc - protected boolean pasteTrigger(IPlayer player, SimpleLocation sloc)
player - sloc - public Set<Map.Entry<SimpleLocation,Trigger>> getTriggersInChunk(SimpleChunkLocation scloc)