MCPcopy Create free account
hub / github.com/GregTech6/gregtech6 / onArrowNockEvent

Method onArrowNockEvent

src/main/java/gregapi/GT_API_Proxy.java:1536–1542  ·  view source on GitHub ↗
(ArrowNockEvent aEvent)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

validMethod · 0.95
projectileMethod · 0.95
getMaxItemUseDurationMethod · 0.65
getItemMethod · 0.65

Tested by

no test coverage detected