- Refactored code into different packages

- Fixed some non-static expansion methods
- Fixed scripts not reloading properly
- Implemented mod support build system
- Fixed recipe removal breaking on recipes without predefined output
- Fixed NPE on parsing a bracket expression that doesn't exist - now prints an appropriate error
This commit is contained in:
Stan Hebben committed 2014-06-21 18:51:11 +02:00
1 parent 1789aa74b5
commit 2de467d7d8
93 files changed
+321 -262

No files matched your search

@@ -0,0 +1,62 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package minetweaker.api.item;
import minetweaker.api.data.IData;
import minetweaker.api.liquid.ILiquidStack;
import stanhebben.zenscript.annotations.OperatorType;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
import stanhebben.zenscript.annotations.ZenMethod;
import stanhebben.zenscript.annotations.ZenOperator;
/**
*
* @author Stan
*/
@ZenClass("minetweaker.item.IItemStack")
public interface IItemStack extends IIngredient {
@ZenGetter("definition")
public IItemDefinition getDefinition();
@ZenGetter("name")
public String getName();
@ZenGetter("displayName")
public String getDisplayName();
@ZenGetter("damage")
public int getDamage();
@ZenGetter("tag")
public IData getTag();
@ZenGetter("maxDamage")
public int getMaxDamage();
@ZenGetter("liquid")
public ILiquidStack getLiquid();
@ZenOperator(OperatorType.MUL)
@ZenMethod
public IItemStack amount(int amount);
@ZenMethod
public IIngredient anyDamage();
@ZenMethod
public IItemStack withDamage(int damage);
@ZenMethod
public IItemStack withAmount(int amount);
@ZenMethod
public IItemStack withTag(IData tag);
@ZenMethod
public IItemStack updateTag(IData tagUpdate);
}