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 class
static enum
static final class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequiredSkill
(PerkFactory.Perk perk, int int0) void
addXP
(IsoGameCharacter character) void
addXP
(IsoGameCharacter character, boolean boolean0) boolean
boolean
boolean
boolean
boolean
canOutputItem
(InventoryItem item) boolean
canOutputItem
(Item item) boolean
canResearch
(IsoGameCharacter character) boolean
canResearch
(IsoGameCharacter character, boolean boolean0) boolean
canUseItem
(String string) boolean
canUseItem
(InventoryItem item) void
checkAutoLearnAllSkills
(IsoGameCharacter character) void
checkAutoLearnAllSkills
(IsoGameCharacter character, boolean boolean0) void
checkAutoLearnAnySkills
(IsoGameCharacter character) void
checkAutoLearnAnySkills
(IsoGameCharacter character, boolean boolean0) void
checkMetaRecipe
(IsoGameCharacter character) void
checkMetaRecipe
(IsoGameCharacter character, String string) void
boolean
containsIO
(CraftRecipe.IOScript iOScript) generateDebugText
(IsoGameCharacter character) getAutoLearnAllSkill
(int int0) int
getAutoLearnAnySkill
(int int0) int
boolean
getHighestRelevantSkill
(IsoGameCharacter character) int
getHighestRelevantSkillLevel
(IsoGameCharacter character) int
getHighestRelevantSkillLevel
(IsoGameCharacter character, boolean boolean0) int
int
getHighestSkillRequirement
(boolean boolean0) int
getIndexForIO
(CraftRecipe.IOScript iOScript) int
getIOForIndex
(int int0) getLuaCallString
(CraftRecipe.LuaCall luaCall) getModID()
getName()
int
getProp1()
getProp2()
getRequiredSkill
(int int0) int
int
int
getResearchSkillLevel
(IsoGameCharacter character) getTags()
int
getTime()
int
getTime
(IsoGameCharacter character) getXPAward
(int int0) int
boolean
hasLuaCall
(CraftRecipe.LuaCall luaCall) boolean
boolean
boolean
void
InitLoadPP
(String string) boolean
boolean
involvesSkill
(PerkFactory.Perk perk1, boolean boolean1) boolean
boolean
boolean
boolean
boolean
Deprecated.boolean
boolean
Deprecated.boolean
boolean
Deprecated.boolean
boolean
boolean
void
void
Load
(String string0, ScriptParser.Block block0) boolean
int
normalizeSkillLevel
(int int0) void
static void
void
void
OnScriptsLoaded
(ScriptLoadMode scriptLoadMode) boolean
OnTestItem
(InventoryItem item) void
overrideIconTexture
(Texture texture) void
overrideTranslationName
(String string) void
void
setAnimation
(String string) void
setProp1
(InputScript inputScript) void
setProp2
(InputScript inputScript) void
setResearchSkillLevel
(int int0) 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
-
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:
getTags
in interfaceTaggedObjectManager.TaggedObject
-
getTagBits
- Specified by:
getTagBits
in 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:
InitLoadPP
in classBaseScriptObject
-
Load
-
Load
- Throws:
Exception
-
PreReload
public void PreReload()- Overrides:
PreReload
in classBaseScriptObject
-
OnScriptsLoaded
- Overrides:
OnScriptsLoaded
in classBaseScriptObject
- Throws:
Exception
-
OnLoadedAfterLua
- Overrides:
OnLoadedAfterLua
in classBaseScriptObject
- Throws:
Exception
-
OnPostWorldDictionaryInit
- Overrides:
OnPostWorldDictionaryInit
in 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() -
getHighestRelevantSkillLevel
-
getHighestRelevantSkillLevel
-
getHighestRelevantSkill
-
onLuaFileReloaded
public static void onLuaFileReloaded() -
getOnAddToMenu
-
involvesSkill
-
involvesSkill
-
isSmithing
public boolean isSmithing() -
canOutputItem
-
canOutputItem
-
setResearchSkillLevel
public void setResearchSkillLevel(int int0) -
getResearchSkillLevel
public int getResearchSkillLevel() -
getResearchSkillLevel
-
normalizeSkillLevel
public int normalizeSkillLevel(int int0) -
getHighestSkillRequirement
public int getHighestSkillRequirement() -
getHighestSkillRequirement
public int getHighestSkillRequirement(boolean boolean0) -
canResearch
-
canResearch
-
isResearchAll
public boolean isResearchAll() -
generateDebugText
-
generateDebugText
-
addXP
-
addXP
-