diff options
author | miozune <miozune@gmail.com> | 2023-06-04 19:54:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-04 12:54:11 +0200 |
commit | f046db94220c1b582175f858f07fd64e81e6e864 (patch) | |
tree | 217d79501c31b76db9d38a75ccaa1ee09d96117e /src/main/java/gregtech/api/interfaces/fluid | |
parent | 9e4456e39709d815ba28064620ff0290ac14151b (diff) | |
download | GT5-Unofficial-f046db94220c1b582175f858f07fd64e81e6e864.tar.gz GT5-Unofficial-f046db94220c1b582175f858f07fd64e81e6e864.tar.bz2 GT5-Unofficial-f046db94220c1b582175f858f07fd64e81e6e864.zip |
Fix void protection not working with MB with custom output hatch field (#2051)
* Fix void protection not working with MB with custom output hatch field
* forgot to filter
* Add util method for DT-like structure
Diffstat (limited to 'src/main/java/gregtech/api/interfaces/fluid')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/fluid/IFluidStore.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/fluid/IFluidStore.java b/src/main/java/gregtech/api/interfaces/fluid/IFluidStore.java new file mode 100644 index 0000000000..047cf4df5b --- /dev/null +++ b/src/main/java/gregtech/api/interfaces/fluid/IFluidStore.java @@ -0,0 +1,22 @@ +package gregtech.api.interfaces.fluid; + +import javax.annotation.Nonnull; + +import net.minecraftforge.fluids.FluidStack; +import net.minecraftforge.fluids.IFluidTank; + +/** + * Objects implementing this interface can be used for storing certain fluid, especially for recipe output. + */ +public interface IFluidStore extends IFluidTank { + + /** + * @return If this does not have partially filled fluid nor have restriction on what fluid to accept. + */ + boolean isEmptyAndAcceptsAnyFluid(); + + /** + * @return Whether to allow given fluid to be inserted into this. + */ + boolean canStoreFluid(@Nonnull FluidStack fluidStack); +} |