Move sources and resources

This commit is contained in:
Johann Bernhardt committed 2021-12-12 13:32:38 +01:00
1 parent 5044de32dd
commit 7f3b65c4b7
320 files changed
+4 -11598

No files matched your search

@@ -0,0 +1,41 @@
package minetweaker.api.container;
import minetweaker.api.item.IItemStack;
import stanhebben.zenscript.annotations.*;
/**
* Container interface.
*
* @author Stan Hebben
*/
@ZenClass("minetweaker.container.IContainer")
public interface IContainer extends Iterable<IItemStack> {
/**
* Gets the container size.
*
* @return container size
*/
@ZenGetter("containerSize")
int getContainerSize();
/**
* Gets the item stack at the given position. Returns null if there is no
* stack at that position.
*
* @param i stack position
*
* @return stack contents, or null
*/
@ZenMethod
IItemStack getStack(int i);
/**
* Sets the item stack at the given position.
*
* @param i stack position
* @param stack contents, or null to set an empty stack
*/
@ZenMethod
void setStack(int i, IItemStack stack);
}