Package zombie.scripting.objects
Class Recipe
java.lang.Object
zombie.scripting.objects.BaseScriptObject
zombie.scripting.objects.Recipe
- Direct Known Subclasses:
MovableRecipe
public class Recipe extends BaseScriptObject
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Recipe.RequiredSkill
static class
Recipe.Result
static class
Recipe.Source
-
Field Summary
Fields Modifier and Type Field Description boolean
AllowDestroyedItem
protected java.lang.String
AnimNode
protected java.lang.String
category
java.lang.String
LuaCreate
java.lang.String
LuaGiveXP
java.lang.String
LuaGrab
java.lang.String
LuaTest
java.lang.String
name
protected java.lang.String
Prop1
protected java.lang.String
Prop2
protected boolean
removeResultItem
Recipe.Result
Result
java.util.ArrayList
skillRequired
java.lang.String
Sound
java.util.ArrayList
Source
protected boolean
stopOnRun
protected boolean
stopOnWalk
float
TimeToMake
Fields inherited from class zombie.scripting.objects.BaseScriptObject
module
-
Constructor Summary
Constructors Constructor Description Recipe()
-
Method Summary
Modifier and Type Method Description void
addRequiredSkill(PerkFactory.Perk perk, int int1)
void
clearRequiredSkills()
void
DoResult(java.lang.String string)
void
DoSource(java.lang.String string)
int
FindIndexOf(InventoryItem inventoryItem)
Recipe.Source
findSource(java.lang.String string)
java.lang.String
getAnimNode()
java.lang.String
getCanPerform()
java.lang.String
getCategory()
java.lang.String
getFullType()
float
getHeat()
java.lang.String
getLuaCreate()
java.lang.String
getLuaGiveXP()
java.lang.String
getLuaGrab()
java.lang.String
getLuaTest()
java.lang.String
getName()
java.lang.String
getNearItem()
int
getNumberOfNeededItem()
java.lang.String
getOriginalname()
java.lang.String
getProp1()
java.lang.String
getProp2()
Recipe.RequiredSkill
getRequiredSkill(int int1)
int
getRequiredSkillCount()
java.util.ArrayList
getRequiredSkills()
Recipe.Result
getResult()
java.lang.String
getSound()
java.util.ArrayList
getSource()
float
getTimeToMake()
java.lang.String
getTooltip()
int
getWaterAmountNeeded()
boolean
isAllowDestroyedItem()
boolean
isCanBeDoneFromFloor()
boolean
isDestroy(java.lang.String string)
boolean
isKeep(java.lang.String string)
boolean
isRemoveResultItem()
boolean
isStopOnRun()
boolean
isStopOnWalk()
void
Load(java.lang.String string, java.lang.String[] stringArray)
boolean
needToBeLearn()
boolean
noBrokenItems()
void
setAllowDestroyedItem(boolean boolean1)
void
setAnimNode(java.lang.String string)
void
setCanBeDoneFromFloor(boolean boolean1)
void
setCanPerform(java.lang.String string)
void
setCategory(java.lang.String string)
void
setLuaCreate(java.lang.String string)
void
setLuaGiveXP(java.lang.String string)
void
setLuaGrab(java.lang.String string)
void
setLuaTest(java.lang.String string)
void
setNearItem(java.lang.String string)
void
setNeedToBeLearn(boolean boolean1)
void
setOriginalname(java.lang.String string)
void
setProp1(java.lang.String string)
void
setProp2(java.lang.String string)
void
setRemoveResultItem(boolean boolean1)
void
setSound(java.lang.String string)
void
setTopOnRun(boolean boolean1)
void
setTopOnWalk(boolean boolean1)
Methods inherited from class zombie.scripting.objects.BaseScriptObject
getModule
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
TimeToMake
public float TimeToMake -
Sound
public java.lang.String Sound -
AnimNode
protected java.lang.String AnimNode -
Prop1
protected java.lang.String Prop1 -
Prop2
protected java.lang.String Prop2 -
Source
public final java.util.ArrayList Source -
Result
-
AllowDestroyedItem
public boolean AllowDestroyedItem -
LuaTest
public java.lang.String LuaTest -
LuaCreate
public java.lang.String LuaCreate -
LuaGrab
public java.lang.String LuaGrab -
name
public java.lang.String name -
skillRequired
public java.util.ArrayList skillRequired -
LuaGiveXP
public java.lang.String LuaGiveXP -
category
protected java.lang.String category -
removeResultItem
protected boolean removeResultItem -
stopOnWalk
protected boolean stopOnWalk -
stopOnRun
protected boolean stopOnRun
-
-
Constructor Details
-
Recipe
public Recipe()
-
-
Method Details
-
isCanBeDoneFromFloor
public boolean isCanBeDoneFromFloor() -
setCanBeDoneFromFloor
public void setCanBeDoneFromFloor(boolean boolean1) -
FindIndexOf
-
getSource
public java.util.ArrayList getSource() -
getNumberOfNeededItem
public int getNumberOfNeededItem() -
getTimeToMake
public float getTimeToMake() -
getName
public java.lang.String getName() -
getFullType
public java.lang.String getFullType() -
Load
public void Load(java.lang.String string, java.lang.String[] stringArray)- Overrides:
Load
in classBaseScriptObject
-
DoSource
public void DoSource(java.lang.String string) -
DoResult
public void DoResult(java.lang.String string) -
getResult
-
getSound
public java.lang.String getSound() -
setSound
public void setSound(java.lang.String string) -
getOriginalname
public java.lang.String getOriginalname() -
setOriginalname
public void setOriginalname(java.lang.String string) -
needToBeLearn
public boolean needToBeLearn() -
setNeedToBeLearn
public void setNeedToBeLearn(boolean boolean1) -
getCategory
public java.lang.String getCategory() -
setCategory
public void setCategory(java.lang.String string) -
getRequiredSkills
public java.util.ArrayList getRequiredSkills() -
getRequiredSkillCount
public int getRequiredSkillCount() -
getRequiredSkill
-
clearRequiredSkills
public void clearRequiredSkills() -
addRequiredSkill
-
findSource
-
isDestroy
public boolean isDestroy(java.lang.String string) -
isKeep
public boolean isKeep(java.lang.String string) -
getHeat
public float getHeat() -
noBrokenItems
public boolean noBrokenItems() -
isAllowDestroyedItem
public boolean isAllowDestroyedItem() -
setAllowDestroyedItem
public void setAllowDestroyedItem(boolean boolean1) -
getWaterAmountNeeded
public int getWaterAmountNeeded() -
getNearItem
public java.lang.String getNearItem() -
setNearItem
public void setNearItem(java.lang.String string) -
getCanPerform
public java.lang.String getCanPerform() -
setCanPerform
public void setCanPerform(java.lang.String string) -
getLuaTest
public java.lang.String getLuaTest() -
setLuaTest
public void setLuaTest(java.lang.String string) -
getLuaCreate
public java.lang.String getLuaCreate() -
setLuaCreate
public void setLuaCreate(java.lang.String string) -
getLuaGrab
public java.lang.String getLuaGrab() -
setLuaGrab
public void setLuaGrab(java.lang.String string) -
getLuaGiveXP
public java.lang.String getLuaGiveXP() -
setLuaGiveXP
public void setLuaGiveXP(java.lang.String string) -
isRemoveResultItem
public boolean isRemoveResultItem() -
setRemoveResultItem
public void setRemoveResultItem(boolean boolean1) -
getAnimNode
public java.lang.String getAnimNode() -
setAnimNode
public void setAnimNode(java.lang.String string) -
getProp1
public java.lang.String getProp1() -
setProp1
public void setProp1(java.lang.String string) -
getProp2
public java.lang.String getProp2() -
setProp2
public void setProp2(java.lang.String string) -
getTooltip
public java.lang.String getTooltip() -
setTopOnWalk
public void setTopOnWalk(boolean boolean1) -
isStopOnWalk
public boolean isStopOnWalk() -
setTopOnRun
public void setTopOnRun(boolean boolean1) -
isStopOnRun
public boolean isStopOnRun()
-