- Did some API refactoring

- Added liquid container addition and removal (removal only possible in 1.6.4)
- Extended NEI support to 1.7.10
- Extended IC2 support to 1.6.4
This commit is contained in:
Stan Hebben committed 2014-07-05 22:35:19 +02:00
1 parent 115593efa5
commit 70cba6d84b
143 files changed
+3118 -632

No files matched your search

@@ -1,29 +1,43 @@
/*
* 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 stanhebben.zenscript.annotations.Optional;
import stanhebben.zenscript.annotations.ZenClass;
import stanhebben.zenscript.annotations.ZenGetter;
import stanhebben.zenscript.annotations.ZenMethod;
import stanhebben.zenscript.annotations.ZenSetter;
/**
*
* @author Stan
* Contains an item definition. Item definitions provide general information
* about an item, such as its name and ID.
*
* Item definitions themselves have no localized name, as it could be different
* for each subitem or even depend on NBT tags.
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.item.IItemDefinition")
public interface IItemDefinition {
/**
* Gets the item ID.
*
* @return item ID
*/
@ZenGetter("id")
public String getId();
/**
* Gets the unlocalized item name.
*
* @return item name
*/
@ZenGetter("name")
public String getName();
/**
* Makes an item stack from this definition.
*
* @param meta meta value
* @return item stack
*/
@ZenMethod
public IItemStack makeStack(@Optional int meta);
}