ISidedInventory is now explicitely an inventory

This commit is contained in:
Space Toad 2011-10-02 19:14:20 +00:00
parent 56438eb585
commit b3d605cd9d

View file

@ -5,12 +5,15 @@
package net.minecraft.src.forge; package net.minecraft.src.forge;
import net.minecraft.src.IInventory;
/** Inventory ranges mapped by side. This class is implemented by TileEntities /** Inventory ranges mapped by side. This class is implemented by TileEntities
* that provide different inventory slot ranges to different sides. * that provide different inventory slot ranges to different sides.
*/ */
public interface ISidedInventory { public interface ISidedInventory extends IInventory {
/** Get the start of the side inventory. /**
* Get the start of the side inventory.
* @param side The global side to get the start of range. * @param side The global side to get the start of range.
* 0: -Y (bottom side) * 0: -Y (bottom side)
* 1: +Y (top side) * 1: +Y (top side)
@ -21,7 +24,8 @@ public interface ISidedInventory {
*/ */
int getStartInventorySide(int side); int getStartInventorySide(int side);
/** Get the size of the side inventory. /**
* Get the size of the side inventory.
* @param side The global side. * @param side The global side.
*/ */
int getSizeInventorySide(int side); int getSizeInventorySide(int side);