Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ChestOnAStickItem(Properties properties) {
- super(properties.maxStackSize(1));
- }
- public ActionResult<ItemStack> onItemRightClick(World worldIn, PlayerInventory playerInventoryIn, int id, PlayerEntity playerIn, Hand handIn) {
- if (!worldIn.isRemote()) {
- ChestContainer.createGeneric9X4(id, playerInventoryIn);
- return new ActionResult<>(ActionResultType.SUCCESS, playerIn.getHeldItem(handIn));
- }
- return new ActionResult<>(ActionResultType.SUCCESS, playerIn.getHeldItem(handIn));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement