Advertisement
Guest User

Untitled

a guest
Oct 4th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. public ChestOnAStickItem(Properties properties) {
  2.         super(properties.maxStackSize(1));
  3.     }
  4.  
  5.  
  6.  
  7.     public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerInventory playerInventoryIn, int id, PlayerEntity playerIn, Hand handIn) {
  8.         if (!worldIn.isRemote()) {
  9.             ChestContainer.createGeneric9X4(id, playerInventoryIn);
  10.             return new ActionResult<>(ActionResultType.SUCCESS, playerIn.getHeldItem(handIn));
  11.         }
  12.         return new ActionResult<>(ActionResultType.SUCCESS, playerIn.getHeldItem(handIn));
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement