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 character) boolean
boolean
canOfferInputItem
(InventoryItem item, boolean boolean0) boolean
canOfferInputItem
(InputScript inputScript, InventoryItem item) boolean
canOfferInputItem
(InputScript inputScript, InventoryItem item, boolean boolean0) boolean
canPerform
(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1, boolean boolean0) boolean
consumeInputs
(List<Resource> list) boolean
consumeOnTickInputs
(List<Resource> list) boolean
containsInputItem
(CraftRecipeData.InputScriptData inputScriptData, InventoryItem item) boolean
boolean
createOnTickOutputs
(List<Resource> list) boolean
createOutputs
(List<Resource> list) boolean
createOutputs
(List<Resource> list, IsoGameCharacter character) getAllConsumedItems
(ArrayList<InventoryItem> arrayList) getAllConsumedItems
(ArrayList<InventoryItem> arrayList, boolean boolean0) getAllCreatedItems
(ArrayList<InventoryItem> arrayList) getAllInputItemsWithFlag
(String string) getAllKeepInputItems
(ArrayList<InventoryItem> arrayList) getDataForInputScript
(InputScript inputScript) 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 character) void
void
void
luaCallOnStart
(IsoGameCharacter character) boolean
void
boolean
offerAndReplaceInputItem
(CraftRecipeData.InputScriptData inputScriptData, InventoryItem item) boolean
boolean
offerInputItem
(InputScript inputScript, InventoryItem item) boolean
offerInputItem
(InputScript inputScript, InventoryItem item, boolean boolean0) boolean
OnTestItem
(InventoryItem item) boolean
perform
(IsoGameCharacter character, List<Resource> list0, List<InventoryItem> list1) boolean
removeInputItem
(InventoryItem item) 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
-
getFirstManualInputFor
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
-
canOfferInputItem
-
offerAndReplaceInputItem
-
offerAndReplaceInputItem
public boolean offerAndReplaceInputItem(CraftRecipeData.InputScriptData inputScriptData, InventoryItem item) -
offerInputItem
-
offerInputItem
-
containsInputItem
-
containsInputItem
public boolean containsInputItem(CraftRecipeData.InputScriptData inputScriptData, InventoryItem item) -
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) -
perform
-
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
-
getViableItem
-
getViableResource
-