From 12a87b798aae9c57bc1ee25796dd5a5ade3cc376 Mon Sep 17 00:00:00 2001 From: Xander Date: Sat, 11 Nov 2017 12:09:13 +0800 Subject: [PATCH] Missed GasTankInfo interface in commit --- .../java/mekanism/api/gas/GasTankInfo.java | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/main/java/mekanism/api/gas/GasTankInfo.java diff --git a/src/main/java/mekanism/api/gas/GasTankInfo.java b/src/main/java/mekanism/api/gas/GasTankInfo.java new file mode 100644 index 000000000..ae308ef5f --- /dev/null +++ b/src/main/java/mekanism/api/gas/GasTankInfo.java @@ -0,0 +1,28 @@ +package mekanism.api.gas; + +import javax.annotation.Nullable; + +/** + * Created by Thiakil on 11/11/2017. + */ +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(); +}