Package logisticspipes.blocks.powertile

Examples of logisticspipes.blocks.powertile.LogisticsPowerJunctionTileEntity


  }

  @Override
  public boolean isTriggerActive(TileEntity tile, ForgeDirection dir, IStatementContainer paramIStatementContainer, IStatementParameter[] paramArrayOfIStatementParameter) {
    if(tile instanceof LogisticsPowerJunctionTileEntity) {
      LogisticsPowerJunctionTileEntity LPJTE = (LogisticsPowerJunctionTileEntity)tile;
      if(LPJTE.needMorePowerTriggerCheck) return true;
    }
    if(tile instanceof LogisticsSolderingTileEntity) {
      LogisticsSolderingTileEntity LSTE = (LogisticsSolderingTileEntity)tile;
      if(LSTE.hasWork) return true;
View Full Code Here


  }

  @Override
  public void processPacket(EntityPlayer player) {
    if (!LPConstants.DEBUG) return;
    final LogisticsPowerJunctionTileEntity tile = this.getTile(player.worldObj, LogisticsPowerJunctionTileEntity.class);
    if (tile != null) {
      tile.addEnergy(100000);
    }
  }
View Full Code Here

    return new PowerJunctionLevel(getId());
  }

  @Override
  public void processPacket(EntityPlayer player) {
    LogisticsPowerJunctionTileEntity tile = this.getTile(player.worldObj, LogisticsPowerJunctionTileEntity.class);
    if(tile != null) {
      tile.handlePowerPacket(getInteger());
    }
  }
View Full Code Here

    super(id);
  }
 
  @Override
  public Object getClientGui(EntityPlayer player) {
    LogisticsPowerJunctionTileEntity tile = this.getTile(player.getEntityWorld(), LogisticsPowerJunctionTileEntity.class);
    if(tile == null) return null;
    return new GuiPowerJunction(player, tile);
  }
View Full Code Here

    return new GuiPowerJunction(player, tile);
  }

  @Override
  public DummyContainer getContainer(EntityPlayer player) {
    LogisticsPowerJunctionTileEntity tile = this.getTile(player.getEntityWorld(), LogisticsPowerJunctionTileEntity.class);
    if(tile == null) return null;
    DummyContainer dummy = new DummyContainer(player, null, tile);
    dummy.addNormalSlotsForPlayerInventory(8, 80);
    return dummy;
  }
View Full Code Here

  public TileEntity createNewTileEntity(World world, int metadata) {
        switch(metadata) {
        case SOLDERING_STATION:
          return new LogisticsSolderingTileEntity();
        case LOGISTICS_POWER_JUNCTION:
          return new LogisticsPowerJunctionTileEntity();
        case LOGISTICS_SECURITY_STATION:
          return new LogisticsSecurityTileEntity();
      case LOGISTICS_AUTOCRAFTING_TABLE:
      case LOGISTICS_FUZZYCRAFTING_TABLE:
        return new LogisticsCraftingTableTileEntity();
View Full Code Here

TOP

Related Classes of logisticspipes.blocks.powertile.LogisticsPowerJunctionTileEntity

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.