Class CraftRecipe
java.lang.Object
zombie.scripting.objects.BaseScriptObject
zombie.scripting.entity.components.crafting.CraftRecipe
- All Implemented Interfaces:
TaggedObjectManager.TaggedObject
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic final classstatic final class -
Field Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRequiredSkill(PerkFactory.Perk perk, int level) voidaddXP(IsoGameCharacter character) voidaddXP(IsoGameCharacter character, boolean showXP) booleanbooleanbooleanbooleanbooleanbooleancanOutputItem(InventoryItem item) booleancanOutputItem(Item item) booleanbooleancanResearch(IsoGameCharacter chr, boolean blacklistKnown) booleancanUseItem(String item) booleancanUseItem(InventoryItem item) booleanvoidvoidcheckAutoLearnAllSkills(IsoGameCharacter chr, boolean textSpam) voidvoidcheckAutoLearnAnySkills(IsoGameCharacter chr, boolean textSpam) voidvoidcheckMetaRecipe(IsoGameCharacter chr, String checkedRecipe) voidbooleancontainsIO(CraftRecipe.IOScript script) booleangetAutoLearnAllSkill(int index) intgetAutoLearnAnySkill(int index) intbooleangetFavouriteModDataString(CraftRecipe recipe) getHighestRelevantSkill(IsoGameCharacter character) intgetHighestRelevantSkillLevel(IsoGameCharacter character) intgetHighestRelevantSkillLevel(IsoGameCharacter character, boolean includeAutoLearn) intintgetHighestSkillRequirement(boolean includeAutoLearn) intgetIndexForIO(CraftRecipe.IOScript script) intgetIOForIndex(int index) getLuaCallString(CraftRecipe.LuaCall luaCall) getModID()getName()intgetProp1()getProp2()getRequiredSkill(int index) intintintgetTags()intgetTime()intgetTime(IsoGameCharacter character) getXPAward(int index) intbooleanhasLuaCall(CraftRecipe.LuaCall luaCall) booleanbooleanbooleanhasPlayerLearned(IsoGameCharacter character) booleanhasRecipeAtHand(IsoGameCharacter chr, ArrayList<ItemContainer> containers) booleanhasRecipeAtHand(HandcraftLogic logic) booleanhasTag(CraftRecipeTag craftRecipeTag) voidInitLoadPP(String name) booleaninvolvesSkill(PerkFactory.Perk skill) booleaninvolvesSkill(PerkFactory.Perk skill, boolean includeAutoLearn) booleanbooleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanisFavourite(IsoGameCharacter character) booleanbooleanDeprecated.booleanbooleanDeprecated.booleanbooleanbooleanvoidvoidLoad(String name, ScriptParser.Block block) booleanintnormalizeSkillLevel(int level) voidstatic voidvoidvoidOnScriptsLoaded(ScriptLoadMode loadMode) booleanOnTestItem(InventoryItem inventoryItem) voidoverrideIconTexture(Texture icon) voidvoidbooleanvoidsetAnimation(String animationString) voidsetProp1(InputScript prop) voidsetProp2(InputScript prop) voidsetResearchSkillLevel(int level) booleanvalidateBenefitFromRecipeAtHand(IsoGameCharacter chr, ArrayList<ItemContainer> containers) booleanMethods inherited from class BaseScriptObject
addLoadedScriptBody, calculateScriptVersion, debugString, getAllScriptLines, getBodyScriptLines, getLoadedScriptBodies, getLoadedScriptBodyCount, getModule, getObsolete, getParent, getScriptLines, getScriptObjectFullType, getScriptObjectName, getScriptObjectType, getScriptVersion, getVersion, isDebugOnly, isEnabled, LoadCommonBlock, LoadCommonBlock, reset, resetLoadedScriptBodies, setModule, setParent
-
Field Details
-
skillRequired
-
autoLearnAny
-
autoLearnAll
-
xpAward
-
metaRecipe
-
researchSkillLevel
public int researchSkillLevel
-
-
Constructor Details
-
CraftRecipe
public CraftRecipe()
-
-
Method Details
-
getOverlayMapper
-
getExistsAsVanilla
public boolean getExistsAsVanilla() -
isVanilla
public boolean isVanilla() -
getModID
-
getModName
-
getName
-
getTranslationName
-
overrideTranslationName
-
getIconName
-
getIconTexture
-
overrideIconTexture
-
isShapeless
Deprecated. -
isConsumeOnFinish
Deprecated. -
isRequiresPlayer
Deprecated. -
needToBeLearn
public boolean needToBeLearn() -
canBeResearched
public boolean canBeResearched() -
canAlwaysBeResearched
public boolean canAlwaysBeResearched() -
cannotBeResearched
public boolean cannotBeResearched() -
getTime
public int getTime() -
getTime
-
getTimedActionScript
-
getRecipeGroup
-
getCategory
-
getTags
- Specified by:
getTagsin interfaceTaggedObjectManager.TaggedObject
-
getTagBits
- Specified by:
getTagBitsin interfaceTaggedObjectManager.TaggedObject
-
getInputCount
public int getInputCount() -
getOutputCount
public int getOutputCount() -
getInputs
-
getOutputs
-
getIoLines
-
getIndexForIO
-
getIOForIndex
-
containsIO
-
isUsesTools
public boolean isUsesTools() -
getToolLeft
-
getToolRight
-
getToolBoth
-
getProp1
-
setProp1
-
getProp2
-
setProp2
-
getAnimation
-
setAnimation
-
hasOnTickInputs
public boolean hasOnTickInputs() -
hasOnTickOutputs
public boolean hasOnTickOutputs() -
hasLuaCall
-
getLuaCallString
-
getTooltip
-
isAllowBatchCraft
public boolean isAllowBatchCraft() -
isCanWalk
public boolean isCanWalk() -
InitLoadPP
- Overrides:
InitLoadPPin classBaseScriptObject
-
Load
-
Load
- Throws:
Exception
-
PreReload
public void PreReload()- Overrides:
PreReloadin classBaseScriptObject
-
OnScriptsLoaded
- Overrides:
OnScriptsLoadedin classBaseScriptObject- Throws:
Exception
-
OnLoadedAfterLua
- Overrides:
OnLoadedAfterLuain classBaseScriptObject- Throws:
Exception
-
OnPostWorldDictionaryInit
- Overrides:
OnPostWorldDictionaryInitin classBaseScriptObject- Throws:
Exception
-
getRequiredSkills
-
getAutoLearnAnySkills
-
getAutoLearnAllSkills
-
checkAutoLearnAnySkills
-
checkAutoLearnAnySkills
-
checkAutoLearnAllSkills
-
checkAutoLearnAllSkills
-
checkMetaRecipe
-
checkMetaRecipe
-
getRequiredSkillCount
public int getRequiredSkillCount() -
getRequiredSkill
-
getAutoLearnAnySkillCount
public int getAutoLearnAnySkillCount() -
getAutoLearnAllSkillCount
public int getAutoLearnAllSkillCount() -
getAutoLearnAnySkill
-
getAutoLearnAllSkill
-
getMetaRecipe
-
getXPAwardCount
public int getXPAwardCount() -
getXPAward
-
clearRequiredSkills
public void clearRequiredSkills() -
addRequiredSkill
-
canUseItem
-
canUseItem
-
OnTestItem
-
hasTag
-
isCanBeDoneFromFloor
public boolean isCanBeDoneFromFloor() -
canBeDoneInDark
public boolean canBeDoneInDark() -
isAnySurfaceCraft
public boolean isAnySurfaceCraft() -
isInHandCraftCraft
public boolean isInHandCraftCraft() -
isAutoRotate
public boolean isAutoRotate() -
getHighestRelevantSkillLevel
-
getHighestRelevantSkillLevel
-
getHighestRelevantSkill
-
getHighestRelevantSkillFromXpAward
-
onLuaFileReloaded
public static void onLuaFileReloaded() -
getOnAddToMenu
-
involvesSkill
-
involvesSkill
-
isSmithing
public boolean isSmithing() -
canOutputItem
-
canOutputItem
-
setResearchSkillLevel
public void setResearchSkillLevel(int level) -
getResearchSkillLevel
public int getResearchSkillLevel() -
getResearchSkillLevel
-
normalizeSkillLevel
public int normalizeSkillLevel(int level) -
getHighestSkillRequirement
public int getHighestSkillRequirement() -
getHighestSkillRequirement
public int getHighestSkillRequirement(boolean includeAutoLearn) -
getHighestPerkRequirement
-
canResearch
-
canResearch
-
isResearchAll
public boolean isResearchAll() -
generateDebugText
-
generateDebugText
-
addXP
-
addXP
-
canBenefitFromRecipeAtHand
-
couldBenefitFromRecipeAtHand
-
validateBenefitFromRecipeAtHand
public boolean validateBenefitFromRecipeAtHand(IsoGameCharacter chr, ArrayList<ItemContainer> containers) -
validateBenefitFromRecipeAtHand
-
hasRecipeAtHand
-
hasRecipeAtHand
-
getFavouriteModDataString
-
isFavourite
-
hasPlayerLearned
-
characterHasRequiredSkills
-
requiresSpecificWorkstation
public boolean requiresSpecificWorkstation() -
isBuildableRecipe
public boolean isBuildableRecipe()
-