Class CraftRecipeData
java.lang.Object
zombie.entity.components.crafting.recipe.CraftRecipeData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCraftRecipeData
(CraftMode craftModex, boolean boolean0, boolean boolean1, boolean boolean2, boolean boolean3) -
Method Summary
Modifier and TypeMethodDescriptionstatic CraftRecipeData
boolean
boolean
canConsumeInputs
(List<Resource> list) boolean
canConsumeInputs
(List<Resource> list0, List<InventoryItem> list1, boolean boolean0, boolean boolean1) boolean
canCreateOutputs
(List<Resource> list) boolean
canCreateOutputs
(List<Resource> list, IsoGameCharacter isoGameCharacter) boolean
canOfferInputItem
(InventoryItem inventoryItem) boolean
canOfferInputItem
(InventoryItem inventoryItem, boolean boolean0) boolean
canOfferInputItem
(InputScript inputScript, InventoryItem inventoryItem) boolean
canOfferInputItem
(InputScript inputScript, InventoryItem inventoryItem, boolean boolean0) boolean
canPerform
(IsoGameCharacter isoGameCharacter, List<Resource> list0, List<InventoryItem> list1, boolean boolean0) boolean
consumeInputs
(List<Resource> list) boolean
consumeOnTickInputs
(List<Resource> list) boolean
containsInputItem
(CraftRecipeData.InputScriptData inputScriptData, InventoryItem inventoryItem) boolean
containsInputItem
(InventoryItem inventoryItem) boolean
createOnTickOutputs
(List<Resource> list) boolean
createOutputs
(List<Resource> list) boolean
createOutputs
(List<Resource> list, IsoGameCharacter isoGameCharacter) getAllConsumedItems
(ArrayList<InventoryItem> arrayList) getAllConsumedItems
(ArrayList<InventoryItem> arrayList, boolean boolean0) getAllCreatedItems
(ArrayList<InventoryItem> arrayList) getAllInputItemsWithFlag
(String string) getAllKeepInputItems
(ArrayList<InventoryItem> arrayList) protected int
protected int
getDataForInputScript
(InputScript inputScript) protected CraftRecipeData.OutputScriptData
getDataForOutputScript
(OutputScript outputScript) getFirstInputItemWithFlag
(String string) getFirstInputItemWithTag
(String string) getFirstManualInputFor
(InputScript inputScript) getInputItems
(Integer integer) se.krka.kahlua.vm.KahluaTable
int
getPossibleCraftCount
(List<Resource> var1, List<InventoryItem> list2, List<Resource> list1, List<InventoryItem> list0, boolean boolean1) getViableItem
(int int0) getViableResource
(int int0) boolean
boolean
boolean
boolean
boolean
load
(ByteBuffer byteBuffer, int int2, CraftRecipe craftRecipe, boolean boolean1) void
void
luaCallOnCreate
(IsoGameCharacter isoGameCharacter) void
void
void
luaCallOnStart
(IsoGameCharacter isoGameCharacter) boolean
void
boolean
offerAndReplaceInputItem
(CraftRecipeData.InputScriptData inputScriptData, InventoryItem inventoryItem) boolean
offerAndReplaceInputItem
(InventoryItem inventoryItem) boolean
offerInputItem
(InputScript inputScript, InventoryItem inventoryItem) boolean
offerInputItem
(InputScript inputScript, InventoryItem inventoryItem, boolean boolean0) boolean
OnTestItem
(InventoryItem inventoryItem) boolean
perform
(IsoGameCharacter isoGameCharacter, List<Resource> list0, List<InventoryItem> list1) boolean
removeInputItem
(InventoryItem inventoryItem) void
reset()
void
save
(ByteBuffer byteBuffer) void
setMonitor
(CraftRecipeMonitor craftRecipeMonitor) void
setRecipe
(CraftRecipe craftRecipe)
-
Field Details
-
inputs
-
-
Constructor Details
-
CraftRecipeData
public CraftRecipeData(CraftMode craftModex, boolean boolean0, boolean boolean1, boolean boolean2, boolean boolean3)
-
-
Method Details
-
Alloc
public static CraftRecipeData Alloc(CraftMode craftModex, boolean boolean0, boolean boolean1, boolean boolean2, boolean boolean3) -
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
-
getDataForOutputScript
-
getFirstManualInputFor
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
public boolean canOfferInputItem(InputScript inputScript, InventoryItem inventoryItem, boolean boolean0) -
offerAndReplaceInputItem
-
offerAndReplaceInputItem
public boolean offerAndReplaceInputItem(CraftRecipeData.InputScriptData inputScriptData, InventoryItem inventoryItem) -
offerInputItem
-
offerInputItem
public boolean offerInputItem(InputScript inputScript, InventoryItem inventoryItem, boolean boolean0) -
containsInputItem
-
containsInputItem
public boolean containsInputItem(CraftRecipeData.InputScriptData inputScriptData, InventoryItem inventoryItem) -
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 isoGameCharacter, List<Resource> list0, List<InventoryItem> list1, boolean boolean0) -
perform
public boolean perform(IsoGameCharacter isoGameCharacter, List<Resource> list0, List<InventoryItem> list1) -
getPossibleCraftCount
public int getPossibleCraftCount(List<Resource> var1, List<InventoryItem> list2, List<Resource> list1, List<InventoryItem> list0, boolean boolean1) -
canConsumeInputs
public boolean canConsumeInputs(List<Resource> list0, List<InventoryItem> list1, boolean boolean0, boolean boolean1) -
canConsumeInputs
-
consumeInputs
-
consumeOnTickInputs
-
canCreateOutputs
-
createOutputs
-
canCreateOutputs
-
createOutputs
-
createOnTickOutputs
-
OnTestItem
-
save
- Throws:
IOException
-
load
public boolean load(ByteBuffer byteBuffer, int int2, CraftRecipe craftRecipe, boolean boolean1) throws IOException - Throws:
IOException
-
getModData
public se.krka.kahlua.vm.KahluaTable getModData() -
getModelHandOne
-
getModelHandTwo
-
getAllConsumedItems
-
getAllConsumedItems
-
getAllConsumedItems
public ArrayList<InventoryItem> getAllConsumedItems(ArrayList<InventoryItem> arrayList, boolean boolean0) -
getAllKeepInputItems
-
getAllKeepInputItems
-
getAllInputItemsWithFlag
-
getInputItems
-
getFirstInputItemWithFlag
-
getFirstInputItemWithTag
-
getAllInputItems
-
getAllDestroyInputItems
-
getAllPutBackInputItems
-
getAllNotKeepInputItems
-
getFirstCreatedItem
-
getAllCreatedItems
-
getAllCreatedItems
-
getAllViableItemsCount
protected int getAllViableItemsCount() -
getViableItem
-
getAllViableResourcesCount
protected int getAllViableResourcesCount() -
getViableResource
-