Package crazypants.enderio.power

Examples of crazypants.enderio.power.IInternalPowerReceptor


    if(te instanceof TileConduitBundle) {

      sendInfoMessage(player, (TileConduitBundle) te);

    } else if(te instanceof IInternalPowerReceptor) {
        IInternalPowerReceptor pr = (IInternalPowerReceptor) te;       
        sendPowerReciptorInfo(player, block, pr.getEnergyStored(null), pr.getMaxEnergyStored(null), 0,
            0, PowerInterfaceRF.getPowerRequest(ForgeDirection.NORTH, pr));

    }
    return null;
  }
View Full Code Here


    if(te instanceof IInternalPowerReceptor && accessor.getNBTData().hasKey("storedEnergyRF")) {
      if(currenttip.size() > 4) {
        currenttip.add("");
      }

      IInternalPowerReceptor power = (IInternalPowerReceptor) te;

      int stored = accessor.getTileEntity() instanceof TileCapacitorBank ? power.getEnergyStored() : accessor.getNBTData().getInteger("storedEnergyRF");
      int max = power.getMaxEnergyStored();

      currenttip.add(String.format("%s%s%s / %s%s%s RF", EnumChatFormatting.WHITE, fmt.format(stored), EnumChatFormatting.RESET, EnumChatFormatting.WHITE, fmt.format(max),
          EnumChatFormatting.RESET));

    } else if(te instanceof IConduitBundle) {
View Full Code Here

TOP

Related Classes of crazypants.enderio.power.IInternalPowerReceptor

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.