@SubscribeEvent
public static void ChestOpen(PlayerInteractEvent.RightClickBlock event){
if (event.getPos().equals(new BlockPos(x, y,z)){
ChestTileEntity inventoryChest = (ChestTileEntity) event.getWorld().getTileEntity(new BlockPos(x, y,z));
for (int count = 0; count<=inventoryChest.getSizeInventory()-1; count++){
//todo
}
}
}