mirror of
https://github.com/GTNewHorizons/CraftTweaker.git
synced 2026-11-18 19:29:08 +00:00
- Basic types can now be converted to the "any" type
- Changed OreDict 'contains' to respond to the 'in' operator
This commit is contained in:
1 parent
52f92dcfd4
commit
1b72abb2b4
59 files changed
+3595
-976
No files matched your search
@@ -8,9 +8,11 @@ package minetweaker.api.oredict;
|
||||
|
||||
import minetweaker.api.item.IIngredient;
|
||||
import minetweaker.api.item.IItemStack;
|
||||
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;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -33,7 +35,7 @@ public interface IOreDictEntry extends IIngredient {
|
||||
@ZenMethod
|
||||
public void remove(IItemStack item);
|
||||
|
||||
@ZenMethod
|
||||
@ZenOperator(OperatorType.CONTAINS)
|
||||
public boolean contains(IItemStack item);
|
||||
|
||||
@ZenMethod
|
||||
|
||||
Reference in new issue
Block a user