public class RecipeItemActivateHook extends java.lang.Object implements ActivateHook
Modifier and Type | Field and Description |
---|---|
protected int |
recipeID |
Constructor and Description |
---|
RecipeItemActivateHook() |
RecipeItemActivateHook(int recipeID) |
Modifier and Type | Method and Description |
---|---|
boolean |
activate(OID activatorOid,
AgisItem item,
OID targetOid)
Adds the item to the Building Resources map for the player and returns true telling the item to be
destroyed.
|
int |
getRecipeID() |
static void |
sendRecipes(OID oid,
java.util.LinkedList<java.lang.String> recipes)
Sends down the map of Building Resources the player has to the client.
|
void |
setRecipeID(int recipeID) |
java.lang.String |
toString() |
public RecipeItemActivateHook()
public RecipeItemActivateHook(int recipeID)
public void setRecipeID(int recipeID)
public int getRecipeID()
public boolean activate(OID activatorOid, AgisItem item, OID targetOid)
activate
in interface ActivateHook
public static void sendRecipes(OID oid, java.util.LinkedList<java.lang.String> recipes)
oid
- resources
- public java.lang.String toString()
toString
in class java.lang.Object