/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/com/hbm/tileentity/IConditionalInvAccess.java
17 строк
758 B
Bob
GUNMETAL
29 сен 2024, 21:56
29 сен 2024, 21:56
a6f694b
Код
Авторство
О чём код?
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); }