MCPcopy Index your code
hub / github.com/GregTech6/gregtech6 / onUseHoeEvent

Method onUseHoeEvent

src/main/java/gregapi/GT_API_Proxy.java:1230–1233  ·  view source on GitHub ↗
(net.minecraftforge.event.entity.player.UseHoeEvent aEvent)

Source from the content-addressed store, hash-verified

1228 }
1229
1230 @SubscribeEvent(priority = EventPriority.LOWEST)
1231 public void onUseHoeEvent(net.minecraftforge.event.entity.player.UseHoeEvent aEvent) {
1232 if (aEvent.world.getBlock(aEvent.x, aEvent.y, aEvent.z) == Blocks.dirt && aEvent.world.getBlockMetadata(aEvent.x, aEvent.y, aEvent.z) != 0) aEvent.setCanceled(T);
1233 }
1234
1235 @SubscribeEvent(priority = EventPriority.LOWEST)
1236 @SuppressWarnings("unlikely-arg-type")

Callers

nothing calls this directly

Calls 2

getBlockMetadataMethod · 0.80
getBlockMethod · 0.65

Tested by

no test coverage detected