2013-06-20 18:29:39 +02:00
|
|
|
package buildcraft.api.bptblocks;
|
|
|
|
|
|
|
|
import buildcraft.api.blueprints.BptBlock;
|
|
|
|
import buildcraft.api.blueprints.BptSlotInfo;
|
|
|
|
import buildcraft.api.blueprints.IBptContext;
|
2013-08-08 19:10:11 +02:00
|
|
|
import net.minecraft.inventory.IInventory;
|
2013-06-20 18:29:39 +02:00
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
public class BptBlockInventory extends BptBlock {
|
|
|
|
|
|
|
|
public BptBlockInventory(int blockId) {
|
|
|
|
super(blockId);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void buildBlock(BptSlotInfo slot, IBptContext context) {
|
|
|
|
super.buildBlock(slot, context);
|
|
|
|
|
|
|
|
IInventory inv = (IInventory) context.world().getBlockTileEntity(slot.x, slot.y, slot.z);
|
|
|
|
|
|
|
|
for (int i = 0; i < inv.getSizeInventory(); ++i) {
|
|
|
|
inv.setInventorySlotContents(i, null);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|