public abstract class LocationBasedTriggerManager<T extends Trigger> extends AbstractLocationBasedTriggerManager<T> implements BukkitTriggerManager
AbstractLocationBasedTriggerManager.ClickHandler, AbstractLocationBasedTriggerManager.ClickTrigger, AbstractLocationBasedTriggerManager.WalkTriggerAbstractTriggerManager.TriggerFilter, AbstractTriggerManager.TriggerInitFailedException| Modifier and Type | Field and Description |
|---|---|
static org.bukkit.Material |
COPY_TOOL |
static org.bukkit.Material |
CUT_TOOL |
static org.bukkit.Material |
INSPECTION_TOOL |
chunkMapconfigSourceFactory, folder, loader| Constructor and Description |
|---|
LocationBasedTriggerManager(TriggerReactorCore plugin,
String folderName,
ITriggerLoader<T> loader) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
copyTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc) |
protected boolean |
cutTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc) |
protected T |
getTriggerForLocation(org.bukkit.Location loc) |
protected Set<Map.Entry<SimpleLocation,Trigger>> |
getTriggersInChunk(org.bukkit.Chunk chunk) |
void |
onBreak(org.bukkit.event.block.BlockBreakEvent e) |
void |
onClick(org.bukkit.event.player.PlayerInteractEvent e) |
void |
onItemSwap(org.bukkit.event.player.PlayerItemHeldEvent e) |
void |
onSignBreak(org.bukkit.event.block.BlockBreakEvent e) |
void |
onWallSignBreak(org.bukkit.event.block.BlockBreakEvent e) |
protected boolean |
pasteTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc) |
protected T |
removeTriggerForLocation(org.bukkit.Location loc) |
protected void |
setTriggerForLocation(org.bukkit.Location loc,
T trigger) |
protected void |
showTriggerInfo(ICommandSender sender,
org.bukkit.block.Block clicked) |
protected void |
showTriggerInfo(ICommandSender sender,
SimpleLocation sloc) |
copyTrigger, cutTrigger, getSettingLocationScript, getTriggerForLocation, getTriggersInChunk, getTriggerTypeName, isLocationSetting, newTrigger, onItemSwap, pasteTrigger, reload, removeLocationCache, setLocationCache, startLocationSet, stopLocationSetextractPrefixget, getAllTriggers, getFolder, getTriggerFile, getTriggerInfos, getTriggerList, has, put, reload, remove, reportWarnings, saveAlldisable, getManagerspublic static final org.bukkit.Material INSPECTION_TOOL
public static final org.bukkit.Material CUT_TOOL
public static final org.bukkit.Material COPY_TOOL
public LocationBasedTriggerManager(TriggerReactorCore plugin, String folderName, ITriggerLoader<T> loader)
public void onClick(org.bukkit.event.player.PlayerInteractEvent e)
public void onWallSignBreak(org.bukkit.event.block.BlockBreakEvent e)
public void onSignBreak(org.bukkit.event.block.BlockBreakEvent e)
public void onBreak(org.bukkit.event.block.BlockBreakEvent e)
public void onItemSwap(org.bukkit.event.player.PlayerItemHeldEvent e)
protected T getTriggerForLocation(org.bukkit.Location loc)
protected void setTriggerForLocation(org.bukkit.Location loc,
T trigger)
protected T removeTriggerForLocation(org.bukkit.Location loc)
protected void showTriggerInfo(ICommandSender sender, org.bukkit.block.Block clicked)
protected void showTriggerInfo(ICommandSender sender, SimpleLocation sloc)
showTriggerInfo in class AbstractLocationBasedTriggerManager<T extends Trigger>protected boolean cutTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc)
player - loc - protected boolean copyTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc)
player - loc - protected boolean pasteTrigger(org.bukkit.entity.Player player,
org.bukkit.Location loc)
player - loc - protected Set<Map.Entry<SimpleLocation,Trigger>> getTriggersInChunk(org.bukkit.Chunk chunk)