Package ic2.api.reactor

Examples of ic2.api.reactor.IReactor


    {
        this.initialized = true;
       
        if (Loader.isModLoaded("IC2"))
        {
            MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
        }
    }
View Full Code Here


            worldObj = parent.getWorldObj();
            xCoord = parent.xCoord;
            yCoord = parent.yCoord;
            zCoord = parent.zCoord;

            MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));

            addedToEnet = true;
        }
    }
View Full Code Here

            worldObj = parent.getWorldObj();
            xCoord = parent.xCoord;
            yCoord = parent.yCoord;
            zCoord = parent.zCoord;

            MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));

            addedToEnet = true;
        }
    }
View Full Code Here

            tileEntity.addedToICEnergyNet = false;
        }
    }

    public static void addToIC2EnergyNet(TileTransvectorInterface tileTransvectorInterface) {
        MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(tileTransvectorInterface));
    }
View Full Code Here

      return;
    }

    if (!initialized && worldObj != null)
    {
      EnergyTileLoadEvent loadEvent = new EnergyTileLoadEvent(this);
      MinecraftForge.EVENT_BUS.post(loadEvent);
      //      EnergyNet.getForWorld(worldObj).addTileEntity(this);
      initialized = true;
    }
View Full Code Here

  {
    if (AdvancedPowerManagement.proxy.isClient()) return;

    if (!initialized && worldObj != null)
    {
      EnergyTileLoadEvent loadEvent = new EnergyTileLoadEvent(this);
      MinecraftForge.EVENT_BUS.post(loadEvent);
      //      EnergyNet.getForWorld(worldObj).addTileEntity(this);
      initialized = true;
    }
View Full Code Here

    if (!initialized)
    {
      if (worldObj == null) return;

      MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
      initialized = true;
    }

    int energySent = 0;
    if (!receivingRedstoneSignal())
View Full Code Here

    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);
      break;
    }
    energyCap = Math.max(packetSize, outputRate);
View Full Code Here

        FMLLog.info(Info.TITLE_LOG + "Resetting Emitter block meta value from " + meta + " to 7");
        worldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, 7, 3);
        worldObj.markBlockForUpdate(xCoord, yCoord, zCoord);
        return;
      }
      EnergyTileLoadEvent loadEvent = new EnergyTileLoadEvent(this);
      MinecraftForge.EVENT_BUS.post(loadEvent);
      //      EnergyNet.getForWorld(worldObj).addTileEntity(this);
      initialized = true;
    }
View Full Code Here

   
    if(_addToNetOnNextTick)
    {
      if(!worldObj.isRemote)
      {
        MinecraftForge.EVENT_BUS.post(new EnergyTileLoadEvent(this));
      }
      _addToNetOnNextTick = false;
      _isAddedToIC2EnergyNet = true;
    }
   
View Full Code Here

TOP

Related Classes of ic2.api.reactor.IReactor

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.