Package appeng.api.events

Examples of appeng.api.events.GridStorageUpdateEvent


  }

  public void updateGrid()
  {
    if (getGrid() != null)
      MinecraftForge.EVENT_BUS.post(new GridStorageUpdateEvent(worldObj, getLocation(), getGrid()));
  }
View Full Code Here


  @Override
  public void onInventoryChanged()
  {
    super.onInventoryChanged();
    MinecraftForge.EVENT_BUS.post(new GridStorageUpdateEvent(worldObj, new WorldCoord(this.xCoord, this.yCoord, this.zCoord), this.getGrid()));
  }
View Full Code Here

      TileEntityBusFluidStorage storageBus = (TileEntityBusFluidStorage) blockTE;
      if (!world.isRemote)
      {
        storageBus.updateGrid();
        PacketDispatcher.sendPacketToAllPlayers(world.getBlockTileEntity(x, y, z).getDescriptionPacket());
        MinecraftForge.EVENT_BUS.post(new GridStorageUpdateEvent(world, new WorldCoord(x, y, z), storageBus.getGrid()));
      }
      ForgeDirection blockOrientation = ForgeDirection.getOrientation(world.getBlockMetadata(x, y, z));

      TileEntity fluidHandler = world.getBlockTileEntity(x + blockOrientation.offsetX, y + blockOrientation.offsetY, z + blockOrientation.offsetZ);
      storageBus.setFluidHandler(fluidHandler instanceof IFluidHandler ? (IFluidHandler) fluidHandler : null);
View Full Code Here

TOP

Related Classes of appeng.api.events.GridStorageUpdateEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.