|
|||||||||
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 | |
---|---|
static java.lang.String |
CRAFTING_BRAND_STR_ANON
The base unlocalized brand added to anonymously crafted items |
static java.lang.String |
CRAFTING_BRAND_STR_NAME
The base unlocalized brand added to named crafted items |
static java.lang.String |
CRAFTING_BRAND_STR_PREFIX
The base unlocalized brand added to crafted items |
Method Summary | |
---|---|
java.util.List<ItemCraftor.ItemKeyPair> |
craftAllItemSets(boolean forceLevels)
Crafts every item of a type supported by this class of every supported material. |
java.util.List<ItemCraftor.ItemKeyPair> |
craftAllItemSets(int material,
boolean forceLevels)
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 recipeName)
Crafts the item specified by the recipe name, of a supported material type which this class can produce. |
ItemCraftor.ItemKeyPair |
craftItem(java.lang.String recipeName,
int material,
boolean forceLevels,
boolean noSafety)
Crafts the item specified by the recipe name, of the specified material type which this class can produce or -1 for any material. |
double |
getItemWeightMultiplier(boolean bundling)
Returns the ratio of the weight of material used to make an item with this skill versus the item weight when finished |
boolean |
mayICraft(Item I)
Returns whether the given item could have been crafted by this skill. |
boolean |
supportsDeconstruction()
Returns true if mundane items can be demonstructed into recipes with this skill. |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.CraftorAbility |
---|
fetchMyRecipes, fetchRecipes, getDecodedComponentsDescription, getDecodedItemNameAndLevel, matchingRecipeNames, myResources, parametersFile, parametersFormat |
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, checkedCastingCost, classificationCode, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, unInvoke, usageCost, usageType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, 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, setSavable |
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 |
Field Detail |
---|
static final java.lang.String CRAFTING_BRAND_STR_PREFIX
static final java.lang.String CRAFTING_BRAND_STR_ANON
static final java.lang.String CRAFTING_BRAND_STR_NAME
Method Detail |
---|
ItemCraftor.ItemKeyPair craftAnyItem(int material)
material
- the rawmaterial code to make the item out of
java.util.List<ItemCraftor.ItemKeyPair> craftAllItemSets(int material, boolean forceLevels)
material
- the rawmaterial code to make the item out offorceLevels
- forces crafted item to have a level if it otherwise doesn't
java.util.List<ItemCraftor.ItemKeyPair> craftAllItemSets(boolean forceLevels)
forceLevels
- forces crafted item to have a level if it otherwise doesn't
ItemCraftor.ItemKeyPair craftItem(java.lang.String recipeName)
recipeName
- the name of the item to make
ItemCraftor.ItemKeyPair craftItem(java.lang.String recipeName, int material, boolean forceLevels, boolean noSafety)
recipeName
- the name of the item to makematerial
- the rawmaterial code to make the item out of, or -1forceLevels
- forces crafted item to have a level if it otherwise doesn'tnoSafety
- whether normal safeguards against creating broken items are overridden
boolean mayICraft(Item I)
I
- the item to examine
boolean supportsDeconstruction()
double getItemWeightMultiplier(boolean bundling)
bundling
- true if the item being created is just a raw resource bundle
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |