mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Make FluidStacks non-nullable, and implement some TODOs.
This commit is contained in:
1 parent
a788e8a475
commit
a9b3b48273
18 files changed
+289
-220
No files matched your search
@@ -21,6 +21,7 @@ package net.minecraftforge.fluids;
|
||||
|
||||
import net.minecraftforge.fluids.capability.IFluidHandler.FluidAction;
|
||||
|
||||
import javax.annotation.Nonnull;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
@@ -33,7 +34,7 @@ public interface IFluidTank {
|
||||
/**
|
||||
* @return FluidStack representing the fluid in the tank, null if the tank is empty.
|
||||
*/
|
||||
@Nullable
|
||||
@Nonnull
|
||||
FluidStack getFluid();
|
||||
|
||||
/**
|
||||
@@ -64,7 +65,7 @@ public interface IFluidTank {
|
||||
* @param action If SIMULATE, the drain will only be simulated.
|
||||
* @return Amount of fluid that was removed (or would be, if simulated) from the tank.
|
||||
*/
|
||||
@Nullable
|
||||
@Nonnull
|
||||
FluidStack drain(int maxDrain, FluidAction action);
|
||||
|
||||
/**
|
||||
@@ -72,7 +73,7 @@ public interface IFluidTank {
|
||||
* @param action If SIMULATE, the drain will only be simulated.
|
||||
* @return FluidStack representing fluid that was removed (or would be, if simulated) from the tank.
|
||||
*/
|
||||
@Nullable
|
||||
@Nonnull
|
||||
FluidStack drain(FluidStack resource, FluidAction action);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user