Advertisement
Guest User

InputStackHandler

a guest
May 19th, 2022
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. public class InputStackHandler extends ItemStackHandler {
  2.    
  3.     private final ItemStackHandler internalSlot;
  4.  
  5.     public InputStackHandler(ItemStackHandler hidden) {
  6.        
  7.         super();
  8.         internalSlot = hidden;
  9.        
  10.     }
  11.  
  12.     @Override
  13.     public ItemStack insertItem(int slot, ItemStack stack, boolean simulate) {
  14.        
  15.         return internalSlot.insertItem(slot, stack, simulate);
  16.        
  17.     }
  18.  
  19.     @Override
  20.     public ItemStack extractItem(int slot, int amount, boolean simulate) {
  21.        
  22.         return ItemStack.EMPTY;
  23.        
  24.     }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement