Class FluidResourceHandlerItemAdapter
java.lang.Object
net.neoforged.neoforge.fluids.capability.FluidResourceHandlerAdapter
net.neoforged.neoforge.fluids.capability.FluidResourceHandlerItemAdapter
- All Implemented Interfaces:
IFluidHandler, IFluidHandlerItem
@Deprecated(since="1.21.9",
forRemoval=true)
public class FluidResourceHandlerItemAdapter
extends FluidResourceHandlerAdapter
implements IFluidHandlerItem
Deprecated, for removal: This API element is subject to removal in a future version.
-
Nested Class Summary
Nested classes/interfaces inherited from interface IFluidHandler
IFluidHandler.FluidAction -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemAccessDeprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionFluidResourceHandlerItemAdapter(ResourceHandler<FluidResource> handler, ItemAccess itemAccess) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Get the container currently acted on by this fluid handler.Methods inherited from class FluidResourceHandlerAdapter
drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IFluidHandler
drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
Field Details
-
itemAccess
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
FluidResourceHandlerItemAdapter
public FluidResourceHandlerItemAdapter(ResourceHandler<FluidResource> handler, ItemAccess itemAccess) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getContainer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:IFluidHandlerItemGet the container currently acted on by this fluid handler. The ItemStack may be different from its initial state, in the case of fluid containers that have different items for their filled and empty states. May be an empty item if the container was drained and is consumable.- Specified by:
getContainerin interfaceIFluidHandlerItem
-