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
Fields inherited from class zombie.scripting.objects.BaseScriptObject
debugOnly, enabled
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRequiredSkill
(PerkFactory.Perk perk, int int0) void
addXP
(IsoGameCharacter isoGameCharacter) void
addXP
(IsoGameCharacter isoGameCharacter, boolean boolean0) boolean
boolean
boolean
boolean
boolean
canOutputItem
(InventoryItem inventoryItem) boolean
canOutputItem
(Item item) boolean
canResearch
(IsoGameCharacter isoGameCharacter) boolean
canResearch
(IsoGameCharacter isoGameCharacter, boolean boolean0) boolean
canUseItem
(String string) boolean
canUseItem
(InventoryItem inventoryItem) void
checkAutoLearnAllSkills
(IsoGameCharacter isoGameCharacter) void
checkAutoLearnAllSkills
(IsoGameCharacter isoGameCharacter, boolean boolean0) void
checkAutoLearnAnySkills
(IsoGameCharacter isoGameCharacter) void
checkAutoLearnAnySkills
(IsoGameCharacter isoGameCharacter, boolean boolean0) void
checkMetaRecipe
(IsoGameCharacter isoGameCharacter) void
checkMetaRecipe
(IsoGameCharacter isoGameCharacter, String string) void
boolean
containsIO
(CraftRecipe.IOScript iOScript) generateDebugText
(IsoGameCharacter isoGameCharacter) getAutoLearnAllSkill
(int int0) int
getAutoLearnAnySkill
(int int0) int
boolean
int
getHighestRelevantSkillLevel
(IsoGameCharacter isoGameCharacter) int
getHighestRelevantSkillLevel
(IsoGameCharacter isoGameCharacter, boolean boolean0) int
int
getHighestSkillRequirement
(boolean boolean0) int
getIndexForIO
(CraftRecipe.IOScript iOScript) int
getIOForIndex
(int int0) getLuaCallString
(CraftRecipe.LuaCall luaCall) getModID()
getName()
protected OutputMapper
getOrCreateOutputMapper
(String string) int
protected OutputMapper
getOutputMapper
(String string) getProp1()
getProp2()
getRequiredSkill
(int int0) int
int
int
getResearchSkillLevel
(IsoGameCharacter isoGameCharacter) getTags()
int
getTime()
int
getTime
(IsoGameCharacter isoGameCharacter) 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 inventoryItem) 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, LoadVector3, reset, resetLoadedScriptBodies, setModule, setParent
-
Field Details
-
skillRequired
-
autoLearnAny
-
autoLearnAll
-
xpAward
-
metaRecipe
-
ResearchSkillLevel
public int ResearchSkillLevel
-
-
Constructor Details
-
CraftRecipe
public CraftRecipe()
-
-
Method Details
-
getOutputMapper
-
getOrCreateOutputMapper
-
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
-
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
-