mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 19:39:22 +00:00
Add new IFluidHandler for capabilities. (#2942)
Old fluid system is deprecated and slated for removal in the next cleanup cycle.
This commit is contained in:
1 parent
13ed510fcf
commit
92914f82ae
39 files changed
+2612
-298
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package net.minecraftforge.fluids;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* A tank is the unit of interaction with Fluid inventories.
|
||||
*
|
||||
@@ -10,6 +12,7 @@ public interface IFluidTank
|
||||
/**
|
||||
* @return FluidStack representing the fluid in the tank, null if the tank is empty.
|
||||
*/
|
||||
@Nullable
|
||||
FluidStack getFluid();
|
||||
|
||||
/**
|
||||
@@ -50,5 +53,6 @@ public interface IFluidTank
|
||||
* If false, the drain will only be simulated.
|
||||
* @return Amount of fluid that was removed from the tank.
|
||||
*/
|
||||
@Nullable
|
||||
FluidStack drain(int maxDrain, boolean doDrain);
|
||||
}
|
||||
Reference in new issue
Block a user