Advertisement
Gamebuster

Untitled

Jul 26th, 2018
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1.     @Override
  2.     public ArrayDeque<AxisAlignedBB> getBoxes() {
  3.         IItemHandler cap = te.getCapability(ITEM_HANDLER_CAPABILITY, EnumFacing.NORTH);
  4.         ArrayDeque<AxisAlignedBB> boxes = new ArrayDeque<AxisAlignedBB>();
  5.        
  6.         if(te != null) {
  7.            
  8.             ItemStack roomSelectionWand = te.getStackInSlot(0);
  9.            
  10.             System.out.println(roomSelectionWand.toString()); //inventory reverted?!?!
  11.            
  12.             if(WAND.isValidSelection(roomSelectionWand)){
  13.                
  14.                 boxes.addFirst(WAND.getBoundingBox(roomSelectionWand).expand(1, 1, 1));
  15.                
  16.                 for(int i = 1; i < te.getSizeInventory(); i++) {
  17.                     if(WAND.isValidSelection(te.getStackInSlot(i))) {
  18.                         //TODO add other boxes to ArrayDeque
  19.                     }
  20.                 }
  21.             }
  22.         }
  23.         return boxes;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement