Class InputScript
java.lang.Object
zombie.scripting.entity.components.crafting.CraftRecipe.IOScript
zombie.scripting.entity.components.crafting.InputScript
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
canUseItem
(String string) boolean
canUseItem
(InventoryItem inventoryItem) boolean
containsEnergy
(Energy energy) boolean
containsFluid
(Fluid fluid) boolean
containsItem
(Item item) boolean
doesItemPassClothingTypeStatusTests
(InventoryItem inventoryItem) boolean
doesItemPassDamageStatusTests
(InventoryItem inventoryItem) boolean
doesItemPassFoodAndCookingTests
(InventoryItem inventoryItem) boolean
doesItemPassIsOrNotEmptyAndFullTests
(InventoryItem inventoryItem) boolean
doesItemPassRoutineStatusTests
(InventoryItem inventoryItem) boolean
doesItemPassSharpnessStatusTests
(InventoryItem inventoryItem) boolean
float
float
getAmount
(int int0) float
int
int
getIntAmount
(int int0) int
getIntAmount
(String string) float
getRelativeScale
(String string) Deprecated.int
Deprecated.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isEmpty()
boolean
boolean
isEnergyMatch
(Energy energy) boolean
isEnergyMatch
(DrainableComboItem drainableComboItem) boolean
boolean
boolean
boolean
isFluidMatch
(FluidContainer fluidContainer) boolean
boolean
isFull()
boolean
boolean
boolean
boolean
isKeep()
boolean
boolean
boolean
isProp1()
boolean
isProp2()
boolean
boolean
Deprecated.boolean
boolean
isTool()
boolean
boolean
boolean
boolean
protected boolean
isValid()
boolean
boolean
isWorn()
protected static InputScript
Load
(CraftRecipe craftRecipe, String string) protected static InputScript
Load
(CraftRecipe craftRecipe, String string0, boolean boolean1) protected static InputScript
LoadBlock
(CraftRecipe craftRecipe, ScriptParser.Block block) boolean
boolean
boolean
boolean
notEmpty()
boolean
notFull()
protected void
void
boolean
passesBrokenTest
(InventoryItem inventoryItem) boolean
passesFavoriteTest
(InventoryItem inventoryItem) boolean
passesFrozenTest
(InventoryItem inventoryItem) boolean
passesRottenTest
(InventoryItem inventoryItem) boolean
Methods inherited from class zombie.scripting.entity.components.crafting.CraftRecipe.IOScript
getParentRecipe, getRecipeLineIndex
-
Field Details
-
createToItemScript
-
consumeFromItemScript
-
-
Method Details
-
isValid
protected boolean isValid() -
getPossibleInputItems
-
getPossibleInputFluids
-
getPossibleInputEnergies
-
hasCreateToItem
public boolean hasCreateToItem() -
getCreateToItemScript
-
hasConsumeFromItem
public boolean hasConsumeFromItem() -
getConsumeFromItemScript
-
hasFlag
-
getOriginalLine
-
getResourceType
-
isExclusive
public boolean isExclusive() -
isItemCount
public boolean isItemCount() -
isDestroy
public boolean isDestroy() -
isKeep
public boolean isKeep() -
isTool
public boolean isTool() -
isToolLeft
public boolean isToolLeft() -
isToolRight
public boolean isToolRight() -
isWorn
public boolean isWorn() -
isNotWorn
public boolean isNotWorn() -
isFull
public boolean isFull() -
isEmpty
public boolean isEmpty() -
notFull
public boolean notFull() -
notEmpty
public boolean notEmpty() -
isDamaged
public boolean isDamaged() -
isUndamaged
public boolean isUndamaged() -
allowFrozenItem
public boolean allowFrozenItem() -
allowRottenItem
public boolean allowRottenItem() -
allowDestroyedItem
public boolean allowDestroyedItem() -
isEmptyContainer
public boolean isEmptyContainer() -
isWholeFoodItem
public boolean isWholeFoodItem() -
isUncookedFoodItem
public boolean isUncookedFoodItem() -
isCookedFoodItem
public boolean isCookedFoodItem() -
isHeadPart
public boolean isHeadPart() -
isSharpenable
public boolean isSharpenable() -
dontPutBack
public boolean dontPutBack() -
inheritColor
public boolean inheritColor() -
inheritCondition
public boolean inheritCondition() -
inheritHeadCondition
public boolean inheritHeadCondition() -
inheritSharpness
public boolean inheritSharpness() -
inheritUses
public boolean inheritUses() -
isNotDull
public boolean isNotDull() -
mayDegrade
public boolean mayDegrade() -
mayDegradeLight
public boolean mayDegradeLight() -
mayDegradeHeavy
public boolean mayDegradeHeavy() -
sharpnessCheck
public boolean sharpnessCheck() -
getShapedIndex
Deprecated. -
getItemApplyMode
-
getFluidMatchMode
-
isFluidExact
public boolean isFluidExact() -
isFluidPrimary
public boolean isFluidPrimary() -
isFluidAnything
public boolean isFluidAnything() -
getIntAmount
public int getIntAmount() -
getAmount
public float getAmount() -
getIntAmount
public int getIntAmount(int int0) -
getAmount
public float getAmount(int int0) -
getIntAmount
-
getAmount
-
getRelativeScale
-
isProp1
public boolean isProp1() -
isProp2
public boolean isProp2() -
isApplyOnTick
public boolean isApplyOnTick() -
isAcceptsAnyItem
public boolean isAcceptsAnyItem() -
isAcceptsAnyFluid
public boolean isAcceptsAnyFluid() -
isAcceptsAnyEnergy
public boolean isAcceptsAnyEnergy() -
isHandcraftOnly
public boolean isHandcraftOnly() -
isAutomationOnly
public boolean isAutomationOnly() -
isReplace
Deprecated. -
getReplaceOutputScript
Deprecated. -
containsItem
-
containsFluid
-
containsEnergy
-
isFluidMatch
-
isEnergyMatch
-
isEnergyMatch
-
LoadBlock
protected static InputScript LoadBlock(CraftRecipe craftRecipe, ScriptParser.Block block) throws Exception - Throws:
Exception
-
Load
- Throws:
Exception
-
Load
protected static InputScript Load(CraftRecipe craftRecipe, String string0, boolean boolean1) throws Exception - Throws:
Exception
-
OnScriptsLoaded
- Throws:
Exception
-
OnPostWorldDictionaryInit
-
canUseItem
-
canUseItem
-
allowFavorites
public boolean allowFavorites() -
passesFavoriteTest
-
passesRottenTest
-
passesFrozenTest
-
passesBrokenTest
-
doesItemPassRoutineStatusTests
-
doesItemPassClothingTypeStatusTests
-
doesItemPassSharpnessStatusTests
-
doesItemPassDamageStatusTests
-
doesItemPassIsOrNotEmptyAndFullTests
-
doesItemPassFoodAndCookingTests
-
isCanBeDoneFromFloor
public boolean isCanBeDoneFromFloor() -
isRecordInput
public boolean isRecordInput()
-