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 arg0, int arg1) voidaddXP(IsoGameCharacter arg0) voidaddXP(IsoGameCharacter arg0, boolean arg1) booleanbooleanbooleancanBenefitFromRecipeAtHand(IsoGameCharacter character) booleanbooleanbooleancanOutputItem(InventoryItem arg0) booleancanOutputItem(Item arg0) booleancanResearch(IsoGameCharacter arg0) booleancanResearch(IsoGameCharacter arg0, boolean arg1) booleancanUseItem(String arg0) booleancanUseItem(InventoryItem arg0) booleancharacterHasRequiredSkills(IsoGameCharacter character) voidvoidcheckAutoLearnAllSkills(IsoGameCharacter arg0, boolean arg1) voidvoidcheckAutoLearnAnySkills(IsoGameCharacter arg0, boolean arg1) voidvoidcheckMetaRecipe(IsoGameCharacter arg0, String arg1) voidbooleanbooleancouldBenefitFromRecipeAtHand(IsoGameCharacter character) getAutoLearnAllSkill(int arg0) intgetAutoLearnAnySkill(int arg0) intbooleangetFavouriteModDataString(CraftRecipe craftRecipe) intintgetHighestRelevantSkillLevel(IsoGameCharacter arg0, boolean arg1) intintgetHighestSkillRequirement(boolean arg0) intintgetIOForIndex(int arg0) getModID()getName()intgetProp1()getProp2()getRequiredSkill(int arg0) intintintgetTags()intgetTime()intgetTime(IsoGameCharacter arg0) getXPAward(int arg0) intbooleanbooleanbooleanbooleanhasPlayerLearned(IsoGameCharacter character) booleanhasRecipeAtHand(IsoGameCharacter character, ArrayList<ItemContainer> arrayList) booleanhasRecipeAtHand(HandcraftLogic handcraftLogic) booleanbooleanhasTag(CraftRecipeTag craftRecipeTag) voidInitLoadPP(String arg0) booleanbooleaninvolvesSkill(PerkFactory.Perk arg0, boolean arg1) booleanbooleanbooleanbooleanbooleanbooleanDeprecated.booleanisFavourite(IsoGameCharacter character) booleanbooleanDeprecated.booleanbooleanDeprecated.booleanbooleanbooleanvoidvoidLoad(String arg0, ScriptParser.Block arg1) booleanintnormalizeSkillLevel(int arg0) voidstatic voidvoidvoidbooleanOnTestItem(InventoryItem arg0) voidoverrideIconTexture(Texture arg0) voidvoidbooleanvoidsetAnimation(String arg0) voidsetProp1(InputScript arg0) voidsetProp2(InputScript arg0) voidsetResearchSkillLevel(int arg0) booleanvalidateBenefitFromRecipeAtHand(IsoGameCharacter character, ArrayList<ItemContainer> arrayList) booleanvalidateBenefitFromRecipeAtHand(HandcraftLogic handcraftLogic) Methods inherited from class zombie.scripting.objects.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
-
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
-
hasTag
-
isCanBeDoneFromFloor
public boolean isCanBeDoneFromFloor() -
canBeDoneInDark
public boolean canBeDoneInDark() -
isAnySurfaceCraft
public boolean isAnySurfaceCraft() -
isInHandCraftCraft
public boolean isInHandCraftCraft() -
getHighestRelevantSkillLevel
-
getHighestRelevantSkillLevel
-
getHighestRelevantSkill
-
getHighestRelevantSkillFromXpAward
-
onLuaFileReloaded
public static void onLuaFileReloaded() -
getOnAddToMenu
-
involvesSkill
-
involvesSkill
-
isSmithing
public boolean isSmithing() -
canOutputItem
-
canOutputItem
-
setResearchSkillLevel
public void setResearchSkillLevel(int arg0) -
getResearchSkillLevel
public int getResearchSkillLevel() -
getResearchSkillLevel
-
normalizeSkillLevel
public int normalizeSkillLevel(int arg0) -
getHighestSkillRequirement
public int getHighestSkillRequirement() -
getHighestSkillRequirement
public int getHighestSkillRequirement(boolean arg0) -
getHighestPerkRequirement
-
canResearch
-
canResearch
-
isResearchAll
public boolean isResearchAll() -
generateDebugText
-
generateDebugText
-
addXP
-
addXP
-
canBenefitFromRecipeAtHand
-
couldBenefitFromRecipeAtHand
-
validateBenefitFromRecipeAtHand
public boolean validateBenefitFromRecipeAtHand(IsoGameCharacter character, ArrayList<ItemContainer> arrayList) -
validateBenefitFromRecipeAtHand
-
hasRecipeAtHand
-
hasRecipeAtHand
-
getFavouriteModDataString
-
isFavourite
-
hasPlayerLearned
-
characterHasRequiredSkills
-
requiresSpecificWorkstation
public boolean requiresSpecificWorkstation() -
isBuildableRecipe
public boolean isBuildableRecipe()
-