public abstract class LocationBasedTriggerManager<T extends Trigger> extends AbstractLocationBasedTriggerManager<T>
AbstractLocationBasedTriggerManager.ClickHandler, AbstractLocationBasedTriggerManager.ClickTrigger, AbstractLocationBasedTriggerManager.WalkTriggerAbstractTriggerManager.TriggerFilter, AbstractTriggerManager.TriggerInitFailedException| Modifier and Type | Field and Description |
|---|---|
static org.spongepowered.api.item.ItemType |
COPY_TOOL |
static org.spongepowered.api.item.ItemType |
CUT_TOOL |
static org.spongepowered.api.item.ItemType |
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.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc) |
protected boolean |
cutTrigger(org.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc) |
protected T |
getTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc) |
protected Set<Map.Entry<SimpleLocation,Trigger>> |
getTriggersInChunk(org.spongepowered.api.world.Chunk chunk) |
void |
onBreak(org.spongepowered.api.event.block.ChangeBlockEvent.Break e) |
void |
onClick(org.spongepowered.api.event.block.InteractBlockEvent e) |
void |
onItemSwap(org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held e) |
void |
onSignBreak(org.spongepowered.api.event.block.ChangeBlockEvent.Break e) |
void |
onTnTBreaK(org.spongepowered.api.event.world.ExplosionEvent.Detonate e) |
protected boolean |
pasteTrigger(org.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc) |
protected T |
removeTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc) |
protected void |
setTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc,
T trigger) |
protected void |
showTriggerInfo(ICommandSender sender,
org.spongepowered.api.block.BlockSnapshot 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.spongepowered.api.item.ItemType INSPECTION_TOOL
public static final org.spongepowered.api.item.ItemType CUT_TOOL
public static final org.spongepowered.api.item.ItemType COPY_TOOL
public LocationBasedTriggerManager(TriggerReactorCore plugin, String folderName, ITriggerLoader<T> loader)
public void onClick(org.spongepowered.api.event.block.InteractBlockEvent e)
public void onSignBreak(org.spongepowered.api.event.block.ChangeBlockEvent.Break e)
public void onBreak(org.spongepowered.api.event.block.ChangeBlockEvent.Break e)
public void onTnTBreaK(org.spongepowered.api.event.world.ExplosionEvent.Detonate e)
public void onItemSwap(org.spongepowered.api.event.item.inventory.ChangeInventoryEvent.Held e)
protected T getTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc)
protected void setTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc,
T trigger)
protected T removeTriggerForLocation(org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc)
protected void showTriggerInfo(ICommandSender sender, org.spongepowered.api.block.BlockSnapshot clicked)
protected void showTriggerInfo(ICommandSender sender, SimpleLocation sloc)
showTriggerInfo in class AbstractLocationBasedTriggerManager<T extends Trigger>protected boolean cutTrigger(org.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc)
player - loc - protected boolean copyTrigger(org.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc)
player - loc - protected boolean pasteTrigger(org.spongepowered.api.entity.living.player.Player player,
org.spongepowered.api.world.Location<org.spongepowered.api.world.World> loc)
player - loc - protected Set<Map.Entry<SimpleLocation,Trigger>> getTriggersInChunk(org.spongepowered.api.world.Chunk chunk)