Ejemplo n.º 1
0
 public float receiveEnergy(BlockFacing from, float maxReceive, bool simulate, float dt)
 {
     if (from == null || sideConfig[from] == IOEnergySideConfig.INPUT)
     {
         return(energyStorage.receiveEnergy(Math.Min(energyStorage.getLimitReceive() * dt, maxReceive), simulate, dt));
     }
     return(0);
 }
Ejemplo n.º 2
0
 public float receiveEnergy(BlockFacing from, float maxReceive, bool simulate, float dt)
 {
     if (from == null || sideConfig[from] == IOEnergySideConfig.INPUT)
     {
         return(energyStorage.receiveEnergy(Math.Min(MyMiniLib.GetAttributeInt(Block, "transfer", 10000) * dt, maxReceive), simulate, dt));
     }
     return(0);
 }
Ejemplo n.º 3
0
 public float receiveEnergy(BlockFacing from, float maxReceive, bool simulate, float dt)
 {
     return(energyStorage.receiveEnergy(Math.Min(energyStorage.getLimitReceive() * dt, maxReceive), simulate, dt));
 }