Example usage for net.minecraftforge.event.world BlockEvent.HarvestDropsEvent getPos

List of usage examples for net.minecraftforge.event.world BlockEvent.HarvestDropsEvent getPos

Introduction

In this page you can find the example usage for net.minecraftforge.event.world BlockEvent.HarvestDropsEvent getPos.

Prototype

public BlockPos getPos() 

Source Link

Usage

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;
        }
    }
}