Class CraftRecipe

java.lang.Object
zombie.scripting.objects.BaseScriptObject
zombie.scripting.entity.components.crafting.CraftRecipe
All Implemented Interfaces:
TaggedObjectManager.TaggedObject

public class CraftRecipe extends BaseScriptObject implements TaggedObjectManager.TaggedObject
  • Field Details

  • Constructor Details

    • CraftRecipe

      public CraftRecipe()
  • Method Details

    • getOutputMapper

      protected OutputMapper getOutputMapper(String string)
    • getOrCreateOutputMapper

      protected OutputMapper getOrCreateOutputMapper(String string)
    • getExistsAsVanilla

      public boolean getExistsAsVanilla()
    • isVanilla

      public boolean isVanilla()
    • getModID

      public String getModID()
    • getModName

      public String getModName()
    • getName

      public String getName()
    • getTranslationName

      public String getTranslationName()
    • overrideTranslationName

      public void overrideTranslationName(String string)
    • getIconName

      public String getIconName()
    • getIconTexture

      public Texture getIconTexture()
    • overrideIconTexture

      public void overrideIconTexture(Texture texture)
    • isShapeless

      @Deprecated public boolean isShapeless()
      Deprecated.
    • isConsumeOnFinish

      @Deprecated public boolean isConsumeOnFinish()
      Deprecated.
    • isRequiresPlayer

      @Deprecated public boolean isRequiresPlayer()
      Deprecated.
    • needToBeLearn

      public boolean needToBeLearn()
    • canBeResearched

      public boolean canBeResearched()
    • canAlwaysBeResearched

      public boolean canAlwaysBeResearched()
    • cannotBeResearched

      public boolean cannotBeResearched()
    • getTime

      public int getTime()
    • getTime

      public int getTime(IsoGameCharacter isoGameCharacter)
    • getTimedActionScript

      public TimedActionScript getTimedActionScript()
    • getCategory

      public String getCategory()
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface TaggedObjectManager.TaggedObject
    • getTagBits

      public BitSet getTagBits()
      Specified by:
      getTagBits in interface TaggedObjectManager.TaggedObject
    • getInputCount

      public int getInputCount()
    • getOutputCount

      public int getOutputCount()
    • getInputs

      public ArrayList<InputScript> getInputs()
    • getOutputs

      public ArrayList<OutputScript> getOutputs()
    • getIoLines

      public ArrayList<CraftRecipe.IOScript> getIoLines()
    • getIndexForIO

      public int getIndexForIO(CraftRecipe.IOScript iOScript)
    • getIOForIndex

      public CraftRecipe.IOScript getIOForIndex(int int0)
    • containsIO

      public boolean containsIO(CraftRecipe.IOScript iOScript)
    • isUsesTools

      public boolean isUsesTools()
    • getToolLeft

      public InputScript getToolLeft()
    • getToolRight

      public InputScript getToolRight()
    • getToolBoth

      public InputScript getToolBoth()
    • getProp1

      public InputScript getProp1()
    • setProp1

      public void setProp1(InputScript inputScript)
    • getProp2

      public InputScript getProp2()
    • setProp2

      public void setProp2(InputScript inputScript)
    • getAnimation

      public String getAnimation()
    • setAnimation

      public void setAnimation(String string)
    • hasOnTickInputs

      public boolean hasOnTickInputs()
    • hasOnTickOutputs

      public boolean hasOnTickOutputs()
    • hasLuaCall

      public boolean hasLuaCall(CraftRecipe.LuaCall luaCall)
    • getLuaCallString

      public String getLuaCallString(CraftRecipe.LuaCall luaCall)
    • getTooltip

      public String getTooltip()
    • isAllowBatchCraft

      public boolean isAllowBatchCraft()
    • isCanWalk

      public boolean isCanWalk()
    • InitLoadPP

      public void InitLoadPP(String string)
      Overrides:
      InitLoadPP in class BaseScriptObject
    • Load

      public void Load(String string1, String string0) throws Exception
      Overrides:
      Load in class BaseScriptObject
      Throws:
      Exception
    • Load

      public void Load(String string0, ScriptParser.Block block0) throws Exception
      Throws:
      Exception
    • PreReload

      public void PreReload()
      Overrides:
      PreReload in class BaseScriptObject
    • OnScriptsLoaded

      public void OnScriptsLoaded(ScriptLoadMode scriptLoadMode) throws Exception
      Overrides:
      OnScriptsLoaded in class BaseScriptObject
      Throws:
      Exception
    • OnLoadedAfterLua

      public void OnLoadedAfterLua() throws Exception
      Overrides:
      OnLoadedAfterLua in class BaseScriptObject
      Throws:
      Exception
    • OnPostWorldDictionaryInit

      public void OnPostWorldDictionaryInit() throws Exception
      Overrides:
      OnPostWorldDictionaryInit in class BaseScriptObject
      Throws:
      Exception
    • getRequiredSkills

      public ArrayList<String> getRequiredSkills()
    • getAutoLearnAnySkills

      public ArrayList<String> getAutoLearnAnySkills()
    • getAutoLearnAllSkills

      public ArrayList<String> getAutoLearnAllSkills()
    • checkAutoLearnAnySkills

      public void checkAutoLearnAnySkills(IsoGameCharacter isoGameCharacter)
    • checkAutoLearnAnySkills

      public void checkAutoLearnAnySkills(IsoGameCharacter isoGameCharacter, boolean boolean0)
    • checkAutoLearnAllSkills

      public void checkAutoLearnAllSkills(IsoGameCharacter isoGameCharacter)
    • checkAutoLearnAllSkills

      public void checkAutoLearnAllSkills(IsoGameCharacter isoGameCharacter, boolean boolean0)
    • checkMetaRecipe

      public void checkMetaRecipe(IsoGameCharacter isoGameCharacter, String string)
    • checkMetaRecipe

      public void checkMetaRecipe(IsoGameCharacter isoGameCharacter)
    • getRequiredSkillCount

      public int getRequiredSkillCount()
    • getRequiredSkill

      public CraftRecipe.RequiredSkill getRequiredSkill(int int0)
    • getAutoLearnAnySkillCount

      public int getAutoLearnAnySkillCount()
    • getAutoLearnAllSkillCount

      public int getAutoLearnAllSkillCount()
    • getAutoLearnAnySkill

      public CraftRecipe.RequiredSkill getAutoLearnAnySkill(int int0)
    • getAutoLearnAllSkill

      public CraftRecipe.RequiredSkill getAutoLearnAllSkill(int int0)
    • getMetaRecipe

      public String getMetaRecipe()
    • getXPAwardCount

      public int getXPAwardCount()
    • getXPAward

      public CraftRecipe.xp_Award getXPAward(int int0)
    • clearRequiredSkills

      public void clearRequiredSkills()
    • addRequiredSkill

      public void addRequiredSkill(PerkFactory.Perk perk, int int0)
    • canUseItem

      public boolean canUseItem(InventoryItem inventoryItem)
    • canUseItem

      public boolean canUseItem(String string)
    • OnTestItem

      public boolean OnTestItem(InventoryItem inventoryItem)
    • hasTag

      public boolean hasTag(String string)
    • isCanBeDoneFromFloor

      public boolean isCanBeDoneFromFloor()
    • canBeDoneInDark

      public boolean canBeDoneInDark()
    • isAnySurfaceCraft

      public boolean isAnySurfaceCraft()
    • isInHandCraftCraft

      public boolean isInHandCraftCraft()
    • getHighestRelevantSkillLevel

      public int getHighestRelevantSkillLevel(IsoGameCharacter isoGameCharacter)
    • getHighestRelevantSkillLevel

      public int getHighestRelevantSkillLevel(IsoGameCharacter isoGameCharacter, boolean boolean0)
    • onLuaFileReloaded

      public static void onLuaFileReloaded()
    • getOnAddToMenu

      public String getOnAddToMenu()
    • involvesSkill

      public boolean involvesSkill(PerkFactory.Perk perk)
    • involvesSkill

      public boolean involvesSkill(PerkFactory.Perk perk1, boolean boolean1)
    • isSmithing

      public boolean isSmithing()
    • canOutputItem

      public boolean canOutputItem(InventoryItem inventoryItem)
    • canOutputItem

      public boolean canOutputItem(Item item)
    • setResearchSkillLevel

      public void setResearchSkillLevel(int int0)
    • getResearchSkillLevel

      public int getResearchSkillLevel()
    • getResearchSkillLevel

      public int getResearchSkillLevel(IsoGameCharacter isoGameCharacter)
    • normalizeSkillLevel

      public int normalizeSkillLevel(int int0)
    • getHighestSkillRequirement

      public int getHighestSkillRequirement()
    • getHighestSkillRequirement

      public int getHighestSkillRequirement(boolean boolean0)
    • canResearch

      public boolean canResearch(IsoGameCharacter isoGameCharacter)
    • canResearch

      public boolean canResearch(IsoGameCharacter isoGameCharacter, boolean boolean0)
    • isResearchAll

      public boolean isResearchAll()
    • generateDebugText

      public String generateDebugText()
    • generateDebugText

      public String generateDebugText(IsoGameCharacter isoGameCharacter)
    • addXP

      public void addXP(IsoGameCharacter isoGameCharacter)
    • addXP

      public void addXP(IsoGameCharacter isoGameCharacter, boolean boolean0)