示例#1
0
    public override void GetBlockInfo(IPlayer forPlayer, StringBuilder sb)
    {
        if (energyStorage != null)
        {
            sb.AppendLine(energyStorage.GetFluxStorageInfo());
        }
        int i = 0;

        foreach (var slot in inventory)
        {
            if (sb.Length > 0 && i == 2)
            {
                sb.Append("\n");
            }
            i++;
            if (slot.Itemstack == null)
            {
                continue;
            }

            if (sb.Length > 0 && sb[sb.Length - 1] != '\n')
            {
                sb.Append(", ");
            }


            sb.Append(slot.Itemstack.GetName());
        }

        sb.AppendLineOnce();
        sb.ToString();
    }
示例#2
0
 public override void GetBlockInfo(IPlayer forPlayer, StringBuilder dsc)
 {
     base.GetBlockInfo(forPlayer, dsc);
     if (energyStorage != null)
     {
         dsc.AppendLine(energyStorage.GetFluxStorageInfo());
     }
 }
示例#3
0
    public override void GetBlockInfo(IPlayer forPlayer, StringBuilder dsc)
    {
        base.GetBlockInfo(forPlayer, dsc);
        if (energyStorage != null)
        {
            dsc.AppendLine(energyStorage.GetFluxStorageInfo());
        }

        dsc.AppendLine(Lang.Get("Generation") + ": " + Math.Round(generation) + " TF/s");
    }