Class HandcraftLogic
java.lang.Object
zombie.entity.components.crafting.BaseCraftingLogic
zombie.entity.components.crafting.recipe.HandcraftLogic
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class zombie.entity.components.crafting.BaseCraftingLogic
BaseCraftingLogic.CachedRecipeComparator, BaseCraftingLogic.CraftEventHandler
-
Field Summary
Fields inherited from class zombie.entity.components.crafting.BaseCraftingLogic
allItems, cachedRecipeComparator, cachedRecipeInfosDirty, categoryFilterString, completeRecipeList, events, filteredRecipeList, filterString, player, sourceResources, testRecipeData
-
Constructor Summary
ConstructorsConstructorDescriptionHandcraftLogic
(IsoGameCharacter isoGameCharacter, CraftBench craftBenchx, IsoObject isoObjectx) -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
boolean
boolean
canCharacterPerformRecipe
(CraftRecipe craftRecipe) boolean
void
void
protected BaseCraftingLogic.CachedRecipeInfo
createCachedRecipeInfo
(CraftRecipe craftRecipe) void
filterRecipeList
(String string0, String string1, boolean boolean0, IsoPlayer isoPlayer) se.krka.kahlua.j2se.KahluaTableImpl
void
getCreatedOutputItems
(ArrayList<InventoryItem> arrayList) int
getInputCount
(InputScript inputScript) getInputItemNodesForInput
(InputScript inputScript) float
getInputUses
(InputScript inputScript) getManualInputsFor
(InputScript inputScript, ArrayList<InventoryItem> arrayList) getMulticraftConsumedItemsFor
(InputScript inputScript, ArrayList<InventoryItem> arrayList1) int
getPossibleCraftCount
(boolean boolean0) float
getResidualFluidFromInput
(InputScript inputScript) getSatisfiedInputFluids
(InputScript inputScript) getSatisfiedInputInventoryItems
(InputScript inputScript) getSatisfiedInputItems
(InputScript inputScript) boolean
boolean
boolean
boolean
isInputSatisfied
(InputScript inputScript) boolean
boolean
isRecipeAvailableForCharacter
(CraftRecipe craftRecipe) boolean
isValidRecipeForCharacter
(CraftRecipe craftRecipe) boolean
offerInputItem
(InventoryItem inventoryItem) boolean
void
populateInputs
(List<InventoryItem> list, List<Resource> var2, boolean boolean0) protected void
void
refresh()
boolean
removeInputItem
(InventoryItem inventoryItem) void
setContainers
(ArrayList<ItemContainer> arrayList0) void
setIsoObject
(IsoObject isoObjectx) boolean
setManualInputsFor
(InputScript inputScript, ArrayList<InventoryItem> arrayList) void
setManualSelectInputs
(boolean boolean0) void
setManualSelectInputScriptFilter
(InputScript inputScript) void
setRecipe
(CraftRecipe craftRecipe) void
setRecipeFromContextClick
(CraftRecipe craftRecipe, InventoryItem inventoryItem) void
setRecipes
(List<CraftRecipe> list) void
setShowManualSelectInputs
(boolean boolean0) boolean
void
startCraftAction
(se.krka.kahlua.j2se.KahluaTableImpl kahluaTableImpl) void
Methods inherited from class zombie.entity.components.crafting.BaseCraftingLogic
addEventListener, addEventListener, callLua, callLua, callLua, callLuaBool, callLuaObject, filterRecipeList, filterRecipeList, filterRecipeList, getCachedRecipeInfo, getCategoryList, getFavouriteModDataString, getSelectedRecipeStyle, setSelectedRecipeStyle, sortRecipeList, triggerEvent
-
Constructor Details
-
HandcraftLogic
public HandcraftLogic(IsoGameCharacter isoGameCharacter, CraftBench craftBenchx, IsoObject isoObjectx)
-
-
Method Details
-
getPlayer
-
getCraftBench
-
getIsoObject
-
getRecipeData
-
getSourceResources
-
getRecipeList
-
getAllItems
-
getInputItemNodes
-
getInputItemNodesForInput
-
getManualSelectInputScriptFilter
-
setManualSelectInputScriptFilter
-
startCraftAction
public void startCraftAction(se.krka.kahlua.j2se.KahluaTableImpl kahluaTableImpl) -
stopCraftAction
public void stopCraftAction() -
refresh
public void refresh() -
offerInputItem
-
removeInputItem
-
autoPopulateInputs
public void autoPopulateInputs() -
populateInputs
-
getResidualFluidFromInput
-
isCraftActionInProgress
public boolean isCraftActionInProgress() -
getCraftActionTable
public se.krka.kahlua.j2se.KahluaTableImpl getCraftActionTable() -
getModelHandOne
-
getModelHandTwo
-
cachedCanPerformCurrentRecipe
public boolean cachedCanPerformCurrentRecipe() -
canPerformCurrentRecipe
public boolean canPerformCurrentRecipe() -
performCurrentRecipe
public boolean performCurrentRecipe() -
getRecipe
-
setRecipe
-
setRecipeFromContextClick
-
checkValidRecipeSelected
public void checkValidRecipeSelected() -
shouldShowManualSelectInputs
public boolean shouldShowManualSelectInputs() -
setShowManualSelectInputs
public void setShowManualSelectInputs(boolean boolean0) -
isManualSelectInputs
public boolean isManualSelectInputs() -
setManualSelectInputs
public void setManualSelectInputs(boolean boolean0) -
setContainers
-
getContainers
-
setRecipes
- Overrides:
setRecipes
in classBaseCraftingLogic
-
filterRecipeList
- Overrides:
filterRecipeList
in classBaseCraftingLogic
-
isInputSatisfied
-
areAllInputItemsSatisfied
public boolean areAllInputItemsSatisfied() -
getSatisfiedInputFluids
-
getSatisfiedInputItems
-
getSatisfiedInputInventoryItems
-
getAllViableInputInventoryItems
-
getAllViableInputResources
-
getInputCount
-
getInputUses
-
getManualInputsFor
public ArrayList<InventoryItem> getManualInputsFor(InputScript inputScript, ArrayList<InventoryItem> arrayList) -
clearManualInputs
public void clearManualInputs() -
setManualInputsFor
-
getCreatedOutputItems
-
rebuildCachedRecipeInfo
protected void rebuildCachedRecipeInfo()- Overrides:
rebuildCachedRecipeInfo
in classBaseCraftingLogic
-
createCachedRecipeInfo
- Overrides:
createCachedRecipeInfo
in classBaseCraftingLogic
-
isCharacterInRangeOfWorkbench
public boolean isCharacterInRangeOfWorkbench() -
isValidRecipeForCharacter
-
canCharacterPerformRecipe
-
isRecipeAvailableForCharacter
-
getResultTexture
-
isCraftCheat
public boolean isCraftCheat()- Overrides:
isCraftCheat
in classBaseCraftingLogic
-
getPossibleCraftCount
public int getPossibleCraftCount(boolean boolean0) -
getMulticraftConsumedResources
-
getMulticraftConsumedItems
-
getMulticraftConsumedItemsFor
public ArrayList<InventoryItem> getMulticraftConsumedItemsFor(InputScript inputScript, ArrayList<InventoryItem> arrayList1) -
setIsoObject
-