Class CraftRecipeData
java.lang.Object
zombie.entity.components.crafting.recipe.CraftRecipeData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCraftRecipeData(CraftMode arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOverfilledResource(InputScript inputScript, HashMap<Resource, ArrayList<InventoryItem>> hashMap) static CraftRecipeDatabooleanbooleancanConsumeInputs(List<Resource> list) booleancanConsumeInputs(List<Resource> list0, List<InventoryItem> list1, boolean boolean0, boolean boolean1) booleancanCreateOutputs(List<Resource> list) booleancanCreateOutputs(List<Resource> list, IsoGameCharacter character) booleanbooleancanOfferInputItem(InventoryItem arg0, boolean arg1) booleancanOfferInputItem(InputScript arg0, InventoryItem arg1) booleancanOfferInputItem(InputScript arg0, InventoryItem arg1, boolean arg2) booleancanPerform(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1, boolean boolean0, ArrayList<ItemContainer> arrayList) voidvoidclearManualInputs(CraftRecipeData.InputScriptData inputScriptData1) voidbooleanconsumeInputs(List<Resource> list) booleanconsumeOnTickInputs(List<Resource> list) booleanbooleanbooleancreateOnTickOutputs(List<Resource> list) booleancreateOutputs(List<Resource> list) booleancreateOutputs(List<Resource> list, IsoGameCharacter character) booleancreateRecipeOutputs(boolean boolean0, List<Resource> list, IsoGameCharacter character) getAllConsumedItems(ArrayList<InventoryItem> arrayList) getAllConsumedItems(ArrayList<InventoryItem> arrayList, boolean boolean0) getAllConsumedItems(ArrayList<InventoryItem> arrayList, boolean boolean1, boolean boolean0) getAllCreatedItems(ArrayList<InventoryItem> arrayList) getAllInputItemsWithFlag(String string) getAllInputItemsWithFlag(InputFlag inputFlag) getAllKeepInputItems(ArrayList<InventoryItem> arrayList) getAllRecordedConsumedItems(ArrayList<InventoryItem> arrayList) intintgetAppliedInputItemTypes(HashSet<String> hashSet) floatintdoublegetFirstInputFluidWithFlag(String string) getFirstInputFluidWithFlag(InputFlag inputFlag) getFirstInputItemWithFlag(InputFlag inputFlag) getInputItems(Integer integer) getManualInputsFor(InputScript inputScript, ArrayList<InventoryItem> arrayList) intgetPossibleCraftCount(List<Resource> list3, List<InventoryItem> list2, List<Resource> list1, List<InventoryItem> list0, boolean boolean0) floatgetViableItem(int arg0) getViableResource(int arg0) booleanbooleanbooleanbooleanbooleanbooleanbooleanload(ByteBuffer arg0, int arg1, CraftRecipe arg2, boolean arg3) voidvoidvoidvoidvoidbooleanvoidbooleanbooleanbooleanofferInputItem(InputScript arg0, InventoryItem arg1) booleanofferInputItem(InputScript arg0, InventoryItem arg1, boolean arg2) booleanOnTestItem(InventoryItem arg0) booleanperform(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1, ArrayList<ItemContainer> arrayList) voidpopulateInputs(List<InventoryItem> list, List<Resource> var2, boolean boolean0) static voidRelease(CraftRecipeData craftRecipeData) booleanremoveInputItem(InventoryItem arg0) voidreset()voidsave(ByteBuffer arg0) voidsetCalculatedVariableInputRatio(float float0) voidsetEatPercentage(int int0) voidsetElapsedTime(double double0) booleansetManualInputsFor(InputScript inputScript, ArrayList<InventoryItem> arrayList) voidsetMonitor(CraftRecipeMonitor arg0) voidsetRecipe(CraftRecipe arg0) voidsetTargetVariableInputRatio(float float0)
-
Field Details
-
inputs
-
-
Constructor Details
-
CraftRecipeData
-
-
Method Details
-
Alloc
public static CraftRecipeData Alloc(CraftMode arg0, boolean arg1, boolean arg2, boolean arg3, boolean arg4) -
Release
-
setMonitor
-
isAllowInputItems
public boolean isAllowInputItems() -
isAllowOutputItems
public boolean isAllowOutputItems() -
isAllowInputResources
public boolean isAllowInputResources() -
isAllowOutputResources
public boolean isAllowOutputResources() -
getToOutputItems
-
reset
public void reset() -
setRecipe
-
getRecipe
-
getDataForInputScript
-
getFirstManualInputFor
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
-
offerAndReplaceInputItem
-
offerAndReplaceInputItem
-
offerInputItem
-
offerInputItem
-
containsInputItem
-
containsInputItem
-
removeInputItem
-
areAllInputItemsSatisfied
public boolean areAllInputItemsSatisfied() -
luaCallOnTest
public boolean luaCallOnTest() -
luaCallOnStart
public void luaCallOnStart() -
luaCallOnStart
-
luaCallOnUpdate
public void luaCallOnUpdate() -
luaCallOnCreate
public void luaCallOnCreate() -
luaCallOnCreate
-
luaCallOnFailed
public void luaCallOnFailed() -
canPerform
public boolean canPerform(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1, boolean boolean0, ArrayList<ItemContainer> arrayList) -
perform
public boolean perform(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1, ArrayList<ItemContainer> arrayList) -
getPossibleCraftCount
public int getPossibleCraftCount(List<Resource> list3, List<InventoryItem> list2, List<Resource> list1, List<InventoryItem> list0, boolean boolean0) -
canConsumeInputs
public boolean canConsumeInputs(List<Resource> list0, List<InventoryItem> list1, boolean boolean0, boolean boolean1) -
canConsumeInputs
-
consumeInputs
-
consumeOnTickInputs
-
canCreateOutputs
-
createOutputs
-
canCreateOutputs
-
createOutputs
-
createOnTickOutputs
-
OnTestItem
-
createRecipeOutputs
public boolean createRecipeOutputs(boolean boolean0, List<Resource> list, IsoGameCharacter character) -
save
- Throws:
IOException
-
load
- Throws:
IOException
-
getModData
-
getModelHandOne
-
getModelHandTwo
-
getAllConsumedItems
-
getAllRecordedConsumedItems
-
getAllConsumedItems
-
getAllRecordedConsumedItems
-
getAllConsumedItems
public ArrayList<InventoryItem> getAllConsumedItems(ArrayList<InventoryItem> arrayList, boolean boolean0) -
getAllConsumedItems
public ArrayList<InventoryItem> getAllConsumedItems(ArrayList<InventoryItem> arrayList, boolean boolean1, boolean boolean0) -
getAllKeepInputItems
-
getAllKeepInputItems
-
getAllInputItemsWithFlag
-
getAllInputItemsWithFlag
-
getInputItems
-
getFirstInputItemWithFlag
-
getFirstInputItemWithFlag
-
getFirstInputItemWithTag
-
getAllInputItems
-
getAppliedInputItemTypes
-
getAllDestroyInputItems
-
getAllPutBackInputItems
-
getAllNotKeepInputItems
-
getFirstCreatedItem
-
getAllCreatedItems
-
getAllCreatedItems
-
getFirstInputFluidWithFlag
-
getFirstInputFluidWithFlag
-
getAllViableItemsCount
public int getAllViableItemsCount() -
getViableItem
-
getAllViableResourcesCount
public int getAllViableResourcesCount() -
getViableResource
-
isVariableAmount
public boolean isVariableAmount() -
getVariableInputRatio
public float getVariableInputRatio() -
setTargetVariableInputRatio
public void setTargetVariableInputRatio(float float0) -
clearTargetVariableInputRatio
public void clearTargetVariableInputRatio() -
addOverfilledResource
public void addOverfilledResource(InputScript inputScript, HashMap<Resource, ArrayList<InventoryItem>> hashMap) -
getCalculatedVariableInputRatio
public float getCalculatedVariableInputRatio() -
setCalculatedVariableInputRatio
public void setCalculatedVariableInputRatio(float float0) -
getManualInputsFor
public ArrayList<InventoryItem> getManualInputsFor(InputScript inputScript, ArrayList<InventoryItem> arrayList) -
clearManualInputs
public void clearManualInputs() -
clearManualInputs
-
setManualInputsFor
-
populateInputs
-
setEatPercentage
public void setEatPercentage(int int0) -
getEatPercentage
public int getEatPercentage() -
getElapsedTime
public double getElapsedTime() -
setElapsedTime
public void setElapsedTime(double double0) -
isFinished
public boolean isFinished()
-