(ArrowNockEvent aEvent)
| 1534 | } |
| 1535 | |
| 1536 | @SubscribeEvent(priority = EventPriority.HIGHEST) |
| 1537 | public void onArrowNockEvent(ArrowNockEvent aEvent) { |
| 1538 | if (!aEvent.isCanceled() && ST.valid(aEvent.result) && ST.projectile(aEvent.entityPlayer.inventory, TD.Projectiles.ARROW) != null) { |
| 1539 | aEvent.entityPlayer.setItemInUse(aEvent.result, aEvent.result.getItem().getMaxItemUseDuration(aEvent.result)); |
| 1540 | aEvent.setCanceled(T); |
| 1541 | } |
| 1542 | } |
| 1543 | |
| 1544 | @SubscribeEvent(priority = EventPriority.LOWEST) |
| 1545 | public void onArrowLooseEvent(ArrowLooseEvent aEvent) { |
nothing calls this directly
no test coverage detected