List of usage examples for net.minecraftforge.event.world BlockEvent.HarvestDropsEvent getPos
public BlockPos getPos()
From source file:com.buuz135.industrial.proxy.event.PlantInteractorHarvestDropsHandler.java
License:Open Source License
@SubscribeEvent(priority = EventPriority.LOWEST) public void onHarvest(BlockEvent.HarvestDropsEvent event) { for (PlantInteractorTile tile : PlantInteractorTile.WORKING_TILES) { if (tile.getWorld().equals(event.getWorld()) && BlockUtils.getBlockPosInAABB(tile.getWorkingArea()).contains(event.getPos())) { tile.harvestDrops(event);/*from ww w. ja v a2 s.c om*/ return; } } }