mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 05:02:25 +00:00
29 lines
652 B
Java
29 lines
652 B
Java
package buildcraft.api.bptblocks;
|
|
|
|
import buildcraft.api.blueprints.BptBlock;
|
|
import buildcraft.api.blueprints.BptSlotInfo;
|
|
import buildcraft.api.blueprints.IBptContext;
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
@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);
|
|
}
|
|
|
|
}
|
|
|
|
}
|