mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-28 07:36:01 +00:00
Git didn't recognize these
This commit is contained in:
1 parent
b58f26ae8e
commit
48f533e2d4
2 files changed
+51
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package mekanism.api.gas;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
public interface GasTankInfo {
|
||||
|
||||
/**
|
||||
* Retrieve the stored gas stack. DO NOT MODIFY.
|
||||
*
|
||||
* @return the stored gas, or null
|
||||
*/
|
||||
@Nullable
|
||||
GasStack getGas();
|
||||
|
||||
/**
|
||||
* Gets the amount of gas stored by this GasTank
|
||||
*
|
||||
* @return amount of gas stored
|
||||
*/
|
||||
int getStored();
|
||||
|
||||
/**
|
||||
* Gets the maximum amount of gas this tank can hold
|
||||
*
|
||||
* @return - max gas
|
||||
*/
|
||||
int getMaxGas();
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package mekanism.api.gas;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
|
||||
/**
|
||||
* Implement this if your tile entity extends IGasHandler.
|
||||
* Backported from 1.12.2, separated from IGasHandler to maintain compatibility.
|
||||
*/
|
||||
public interface IGasTankInfoProvider
|
||||
{
|
||||
|
||||
GasTankInfo[] NONE = new GasTankInfo[0];
|
||||
|
||||
/**
|
||||
* Gets the tanks present on this handler. READ ONLY. DO NOT MODIFY.
|
||||
*
|
||||
* @return an array of GasTankInfo elements corresponding to all tanks.
|
||||
*/
|
||||
@Nonnull
|
||||
default GasTankInfo[] getTankInfo() {
|
||||
return NONE;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user