|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ItemCraftor
This interface denotes an ability that also incidentally is capable of generating objects, usually items. This is probably a common skill, but one could imagine an itemcraftor also being a spell that generates its own items. Also the item generation is an incidental and internal aspect of the ability, these methods allow that functionality to be exposed for archon use.
| Nested Class Summary | |
|---|---|
static class |
ItemCraftor.ItemKeyPair
For auto-crafting, this object represents an item, and (optionally) a key to go with it. |
| Field Summary |
|---|
| Method Summary | |
|---|---|
java.util.List<ItemCraftor.ItemKeyPair> |
craftAllItemSets()
Crafts every item of a type supported by this class of every supported material. |
java.util.List<ItemCraftor.ItemKeyPair> |
craftAllItemSets(int material)
Crafts every item of a type supported by this class of the given resource code. |
ItemCraftor.ItemKeyPair |
craftAnyItem(int material)
Crafts a random item of a type supported by this class of the given resource code. |
ItemCraftor.ItemKeyPair |
craftItem(java.lang.String recipe)
Crafts the item specified by the recipe name, of a supported material type which this class can produce. |
ItemCraftor.ItemKeyPair |
craftItem(java.lang.String recipe,
int material)
Crafts the item specified by the recipe name, of the specified material type which this class can produce. |
java.util.List<java.util.List<java.lang.String>> |
fetchRecipes()
A Vector containing an entry for each craftable recipe Each craftable recipe is also a vector of strings. |
java.util.List<java.util.List<java.lang.String>> |
matchingRecipeNames(java.lang.String recipeName,
boolean beLoose)
Returns a vector containing an entry for each craftable recipe whose name matches the given name. |
java.util.List<java.lang.Integer> |
myResources()
Returns a Vector of Integer objects where each Integer is a fully qualified RawMaterial code. |
java.lang.String |
parametersFile()
A String naming the file where the recipes are found |
java.lang.String |
parametersFormat()
A String containing the format of each entry in the parameter file in a recipe. |
| Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
|---|
abilityCode, abstractQuality, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingTime, classificationCode, clearExpertiseCache, combatCastingTime, enchantQuality, externalFiles, flags, getTicksBetweenCasts, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, practicesRequired, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, setSavable, startTickDown, teach, trainsRequired, triggerStrings, unInvoke, usageCost, usageType |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, maxRange, minRange, miscTextFormat, name, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg, okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, ID, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Method Detail |
|---|
java.util.List<java.util.List<java.lang.String>> fetchRecipes()
java.lang.String parametersFormat()
java.lang.String parametersFile()
java.util.List<java.util.List<java.lang.String>> matchingRecipeNames(java.lang.String recipeName,
boolean beLoose)
recipeName - the name of the recipe to craftbeLoose - whether to be specific or "loose" with name matching
ItemCraftor.ItemKeyPair craftAnyItem(int material)
material - the rawmaterial code to make the item out of
java.util.List<ItemCraftor.ItemKeyPair> craftAllItemSets(int material)
material - the rawmaterial code to make the item out of
java.util.List<ItemCraftor.ItemKeyPair> craftAllItemSets()
ItemCraftor.ItemKeyPair craftItem(java.lang.String recipe)
recipe - the name of the item to make
ItemCraftor.ItemKeyPair craftItem(java.lang.String recipe,
int material)
recipe - the name of the item to makematerial - the rawmaterial code to make the item out of
java.util.List<java.lang.Integer> myResources()
RawMaterial
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||