generated from NeoForgeMDKs/MDK-1.21-ModDevGradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
66 changed files
with
640 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/main/java/net/superscary/fluxmachines/api/energy/FMEnergyStorage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package net.superscary.fluxmachines.api.energy; | ||
|
||
import net.neoforged.neoforge.energy.EnergyStorage; | ||
|
||
public class FMEnergyStorage extends EnergyStorage { | ||
|
||
public FMEnergyStorage(int capacity) { | ||
this(capacity, capacity, capacity, 0); | ||
} | ||
|
||
public FMEnergyStorage(int capacity, int maxTransfer) { | ||
this(capacity, maxTransfer, maxTransfer, 0); | ||
} | ||
|
||
public FMEnergyStorage(int capacity, int maxReceive, int maxExtract) { | ||
this(capacity, maxReceive, maxExtract, 0); | ||
} | ||
|
||
public FMEnergyStorage(int capacity, int maxReceive, int maxExtract, int energy) { | ||
super(capacity, maxReceive, maxExtract, energy); | ||
} | ||
|
||
public void setStored (int energy) { | ||
this.energy = energy; | ||
} | ||
|
||
public void setMaxStorage (int capacity) { | ||
this.capacity = capacity; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
|
||
public interface InventoryHolder { | ||
|
||
ItemStackHandler getInventory(); | ||
ItemStackHandler getInventory (); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.