Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public ArrayDeque<AxisAlignedBB> getBoxes() {
- IItemHandler cap = te.getCapability(ITEM_HANDLER_CAPABILITY, EnumFacing.NORTH);
- ArrayDeque<AxisAlignedBB> boxes = new ArrayDeque<AxisAlignedBB>();
- if(te != null) {
- ItemStack roomSelectionWand = te.getStackInSlot(0);
- System.out.println(roomSelectionWand.toString()); //inventory reverted?!?!
- if(WAND.isValidSelection(roomSelectionWand)){
- boxes.addFirst(WAND.getBoundingBox(roomSelectionWand).expand(1, 1, 1));
- for(int i = 1; i < te.getSizeInventory(); i++) {
- if(WAND.isValidSelection(te.getStackInSlot(i))) {
- //TODO add other boxes to ArrayDeque
- }
- }
- }
- }
- return boxes;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement