Initial 1.11-pre1 update

This commit is contained in:
cpw committed 2016-11-13 17:09:55 -05:00
1 parent c177219ff3
commit 4e6a774075
294 files changed
+3099 -2846

No files matched your search

@@ -21,6 +21,8 @@ package net.minecraftforge.items;
import net.minecraft.item.ItemStack;
import javax.annotation.Nonnull;
public interface IItemHandler
{
/**
@@ -49,6 +51,7 @@ public interface IItemHandler
* @param slot Slot to query
* @return ItemStack in given slot. May be null.
**/
@Nonnull
ItemStack getStackInSlot(int slot);
/**
@@ -62,7 +65,8 @@ public interface IItemHandler
* @return The remaining ItemStack that was not inserted (if the entire stack is accepted, then return null).
* May be the same as the input ItemStack if unchanged, otherwise a new ItemStack.
**/
ItemStack insertItem(int slot, ItemStack stack, boolean simulate);
@Nonnull
ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate);
/**
* Extracts an ItemStack from the given slot. The returned value must be null
@@ -74,5 +78,6 @@ public interface IItemHandler
* @param simulate If true, the extraction is only simulated
* @return ItemStack extracted from the slot, must be null, if nothing can be extracted
**/
@Nonnull
ItemStack extractItem(int slot, int amount, boolean simulate);
}