Skip to content

Instantly share code, notes, and snippets.

@Johni0702
Created October 24, 2014 15:23
Show Gist options
  • Save Johni0702/d55f9b42938e8d3a8a43 to your computer and use it in GitHub Desktop.
Save Johni0702/d55f9b42938e8d3a8a43 to your computer and use it in GitHub Desktop.
# ---
# name: WindowClickTest
# version: 0.1-SNAPSHOT
# ---
import quick
@quick.event('inventory.InventoryClickEvent', priority='HIGH')
def onWindowClicked(event):
print '---- InventoryClickEvent ----'
print ' getWhoClicked: %s' % event.getWhoClicked()
print ' getInventory: %s' % event.getInventory()
print ' getInventory: %s' % event.getView().countSlots()
print ' getView: %s' % event.getView()
print ' getAction: %s' % event.getAction()
print ' getClick: %s' % event.getClick()
print ' getRawSlot: %s' % event.getRawSlot()
print ' getSlot: %s' % event.getSlot()
print ' getSlotType: %s' % event.getSlotType()
print ' getCursor: %s' % event.getCursor()
print ' getCurrentItem: %s' % event.getCurrentItem()
print ' isRightClick: %s' % event.isRightClick()
print ' isLeftClick: %s' % event.isLeftClick()
print ' isShiftClick: %s' % event.isShiftClick()
print ' getHotbarButton: %s' % event.getHotbarButton()
print ' getResult: %s' % event.getResult()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment