- 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,22 @@
package minetweaker.api.item;
import stanhebben.zenscript.annotations.ZenClass;
/**
* Item conditions apply additional conditions on item stacks.
*
* They may, for instance, require specific damage ranges or NBT tags. Custom
* implementations of this functional interface may contain any kind of condition.
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.item.IItemCondition")
public interface IItemCondition {
/**
* Returns true if the given stack matches the required conditions.
*
* @param stack item stack to check
* @return true if the condition applies to this stack
*/
public boolean matches(IItemStack stack);
}