Package ic2.api.recipe

Examples of ic2.api.recipe.IListRecipeManager


    case 18:
    case 19:
    case 20:
    case 21:
      //TODO How can we make IC2 check the new emit/accept values without doing a reload?
      if (initialized) MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
      initialized = false;
      sideSettings[id - 16] ^= 1;
      MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
      initialized = true;
      //worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
View Full Code Here


  @Override
  public void invalidate()
  {
    if (worldObj != null && initialized)
    {
      EnergyTileUnloadEvent unloadEvent = new EnergyTileUnloadEvent(this);
      MinecraftForge.EVENT_BUS.post(unloadEvent);
      //      EnergyNet.getForWorld(worldObj).removeTileEntity(this);
    }
    super.invalidate();
  }
View Full Code Here

  @Override
  public void invalidate()
  {
    if (worldObj != null && initialized)
    {
      EnergyTileUnloadEvent unloadEvent = new EnergyTileUnloadEvent((IEnergyTile)this);
      MinecraftForge.EVENT_BUS.post(unloadEvent);
    }
    super.invalidate();
  }
View Full Code Here

  {
    if(_isAddedToIC2EnergyNet)
    {
      if(!worldObj.isRemote)
      {
        MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
      }
      _isAddedToIC2EnergyNet = false;
    }
    ElectricityNetworkHelper.invalidate(this);
    super.invalidate();
View Full Code Here

  {
    super.onBlockBroken();
    if(_isAddedToIC2EnergyNet)
    {
      _isAddedToIC2EnergyNet = false;
      MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));
    }
  }
View Full Code Here

  public static void unloadIC(IEnergyTile tile)
  {
    if (CompatibilityType.INDUSTRIALCRAFT.isModuleEnabled && loadedIC2Tiles.contains(tile) && !((TileEntity) tile).worldObj.isRemote)
    {
      NetworkTickHandler.queueEvent(new EnergyTileUnloadEvent(tile));
      loadedIC2Tiles.remove(tile);
    }
  }
View Full Code Here

      TileEntity registered = EnergyNet.instance.getTileEntity(worldObj, xCoord, yCoord, zCoord);
      if(registered != this)
      {
        if(registered instanceof IEnergyTile)
        {
          MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent((IEnergyTile)registered));
        }
        else if(registered == null)
        {
          MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
          ic2Registered = true;
View Full Code Here

    if(!worldObj.isRemote)
    {
      TileEntity registered = EnergyNet.instance.getTileEntity(worldObj, xCoord, yCoord, zCoord);
      if(registered instanceof IEnergyTile)
      {
        MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent((IEnergyTile)registered));
      }
    }
  }
View Full Code Here

   */
  @Override
  public void onChunkUnload() {
    if (addedToEnet &&
        Info.isIc2Available()) {
      MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));

      addedToEnet = false;
    }
  }
View Full Code Here

   */
  @Override
  public void onChunkUnload() {
    if (addedToEnet &&
        Info.isIc2Available()) {
      MinecraftForge.EVENT_BUS.post(new EnergyTileUnloadEvent(this));

      addedToEnet = false;
    }
  }
View Full Code Here

TOP

Related Classes of ic2.api.recipe.IListRecipeManager

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.