mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +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,14 +1,17 @@
|
||||
package net.minecraftforge.fluids;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Wrapper class used to encapsulate information about an IFluidTank.
|
||||
*/
|
||||
public final class FluidTankInfo
|
||||
{
|
||||
@Nullable
|
||||
public final FluidStack fluid;
|
||||
public final int capacity;
|
||||
|
||||
public FluidTankInfo(FluidStack fluid, int capacity)
|
||||
public FluidTankInfo(@Nullable FluidStack fluid, int capacity)
|
||||
{
|
||||
this.fluid = fluid;
|
||||
this.capacity = capacity;
|
||||
|
||||
Reference in new issue
Block a user