Package org.cyclops.cyclopscore.fluid
Class FluidHandlerWrapper
java.lang.Object
org.cyclops.cyclopscore.fluid.FluidHandlerWrapper
- All Implemented Interfaces:
net.minecraftforge.fluids.capability.IFluidHandler
public class FluidHandlerWrapper
extends Object
implements net.minecraftforge.fluids.capability.IFluidHandler
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraftforge.fluids.capability.IFluidHandler
net.minecraftforge.fluids.capability.IFluidHandler.FluidAction
-
Constructor Summary
ConstructorDescriptionFluidHandlerWrapper
(net.minecraftforge.fluids.capability.IFluidHandler fluidHandler) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraftforge.fluids.FluidStack
drain
(int maxDrain, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) net.minecraftforge.fluids.FluidStack
drain
(net.minecraftforge.fluids.FluidStack resource, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) int
fill
(net.minecraftforge.fluids.FluidStack resource, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) net.minecraftforge.fluids.FluidStack
getFluidInTank
(int tank) int
getTankCapacity
(int tank) int
getTanks()
boolean
isFluidValid
(int tank, net.minecraftforge.fluids.FluidStack stack)
-
Constructor Details
-
FluidHandlerWrapper
public FluidHandlerWrapper(net.minecraftforge.fluids.capability.IFluidHandler fluidHandler)
-
-
Method Details
-
getTanks
public int getTanks()- Specified by:
getTanks
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
getFluidInTank
@Nonnull public net.minecraftforge.fluids.FluidStack getFluidInTank(int tank) - Specified by:
getFluidInTank
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
getTankCapacity
public int getTankCapacity(int tank) - Specified by:
getTankCapacity
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
isFluidValid
public boolean isFluidValid(int tank, @Nonnull net.minecraftforge.fluids.FluidStack stack) - Specified by:
isFluidValid
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
fill
public int fill(net.minecraftforge.fluids.FluidStack resource, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
fill
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
drain
@Nonnull public net.minecraftforge.fluids.FluidStack drain(net.minecraftforge.fluids.FluidStack resource, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
drain
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-
drain
@Nonnull public net.minecraftforge.fluids.FluidStack drain(int maxDrain, net.minecraftforge.fluids.capability.IFluidHandler.FluidAction action) - Specified by:
drain
in interfacenet.minecraftforge.fluids.capability.IFluidHandler
-