Files
TinkersConstruct/src/main/java/tconstruct/smeltery/inventory/ActiveContainer.java
T
2014-06-04 21:44:48 -08:00

27 lines
677 B
Java

package tconstruct.smeltery.inventory;
import java.util.ArrayList;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container;
public class ActiveContainer extends Container
{
public List<ActiveSlot> activeInventorySlots = new ArrayList<ActiveSlot>();
@Override
public boolean canInteractWith (EntityPlayer entityplayer)
{
return false;
}
protected ActiveSlot addDualSlotToContainer (ActiveSlot slot)
{
slot.activeSlotNumber = this.activeInventorySlots.size();
this.activeInventorySlots.add(slot);
this.addSlotToContainer(slot);
return slot;
}
}