mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
18 lines
758 B
Java
18 lines
758 B
Java
package com.hbm.tileentity;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
/**
|
|
* Masks operation such as isItemValidForSlot and getAccessibleSlotsFromSide found in ISidedInveotry
|
|
* Intended to be used to return a different result depending on the port, assuming the port detects IConditionalInvAccess
|
|
*
|
|
* @author hbm
|
|
*/
|
|
public interface IConditionalInvAccess {
|
|
|
|
public boolean isItemValidForSlot(int x, int y, int z, int slot, ItemStack stack);
|
|
public default boolean canInsertItem(int x, int y, int z, int slot, ItemStack stack, int side) { return isItemValidForSlot(x, y, z, slot, stack); }
|
|
public boolean canExtractItem(int x, int y, int z, int slot, ItemStack stack, int side);
|
|
public int[] getAccessibleSlotsFromSide(int x, int y, int z, int side);
|
|
}
|