ISidedInventory .java

net.minecraft.inventory.ISidedInventory (interface, 22 lines): members: getSlotsForFace, canExtractItem, canInsertItem. imports: EnumFacing.

net.minecraft.inventoryinterface22 linescommonextends IInventory664 B

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (3)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ISidedInventory.java22 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.inventory;
2
3
import net.minecraft.item.ItemStack;
4
import net.minecraft.util.EnumFacing;
5
6
public interface ISidedInventory extends IInventory
7
{
8
    int[] getSlotsForFace(EnumFacing side);
9
10
    /**
11
     * Returns true if automation can insert the given item in the given slot from the given side. Args: slot, item,
12
     * side
13
     */
14
    boolean canInsertItem(int index, ItemStack itemStackIn, EnumFacing direction);
15
16
    /**
17
     * Returns true if automation can extract the given item in the given slot from the given side. Args: slot, item,
18
     * side
19
     */
20
    boolean canExtractItem(int index, ItemStack stack, EnumFacing direction);
21
}
22

Deobfuscated MCP 1.8.9 source of ISidedInventory from Marcelektro/MavenMCP-1.8.9 (net/minecraft/inventory/ISidedInventory.java), stored verbatim.