You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Creates a new ExtendedEnergyStorage instance with the specified capacity, maximum receive amount, maximum extract amount, and initial energy amount.
48
+
* Creates a new {@link ExtendedEnergyStorage} instance with the specified capacity, maximum receive amount, maximum extract amount, and initial energy amount.
41
49
*
42
50
* @param capacity the maximum amount of energy that can be stored
43
51
* @param maxReceive the maximum amount of energy that can be received in a single operation
@@ -53,7 +61,7 @@ public ExtendedEnergyStorage(int capacity, int maxReceive, int maxExtract, int e
53
61
/**
54
62
* Sets the current energy amount to the specified value, clamping it to the range [0, capacity].
55
63
*
56
-
* @param energy the new energy amount
64
+
* @param energy The new energy amount
57
65
*/
58
66
publicvoidsetEnergy(intenergy) {
59
67
if(energy < 0)
@@ -117,7 +125,7 @@ public int extractEnergy(int toExtract, boolean simulate) {
0 commit comments