2021-10-12 16:35:34 +02:00

34 lines
731 B
Java

package com.hbm.tileentity.machine.rbmk;
import net.minecraft.item.ItemStack;
public interface IRBMKLoadable {
/**
* @param toLoad the ItemStack that should be loaded
* @return TRUE if the provided ItemStack can be inserted into the column
*/
public boolean canLoad(ItemStack toLoad);
/**
* Loads the given ItemStack, canLoad check necessary first
* @param toLoad
*/
public void load(ItemStack toLoad);
/**
* @return TRUE if the column contains an ItemStack that can be unloaded
*/
public boolean canUnload();
/**
* @return The next ItemStack to be unloaded
*/
public ItemStack provideNext();
/**
* Removes the next ItemStack as part of the unloading process
*/
public void unload();
}