Class VanillaEntityItemFrameFluidHandler

java.lang.Object
org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem>
org.cyclops.commoncapabilities.modcompat.vanilla.capability.fluidhandler.VanillaEntityItemFrameFluidHandler
All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler

public class VanillaEntityItemFrameFluidHandler extends VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem> implements net.neoforged.neoforge.fluids.capability.IFluidHandler
A fluid handler for entity item frames that have a fluid handler.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler

    net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction
  • Constructor Summary

    Constructors
    Constructor
    Description
    VanillaEntityItemFrameFluidHandler(net.minecraft.world.entity.decoration.ItemFrame entity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.neoforged.neoforge.fluids.FluidStack
    drain(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    net.neoforged.neoforge.fluids.FluidStack
    drain(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    int
    fill(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    protected net.neoforged.neoforge.capabilities.ItemCapability<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem,Void>
     
    net.neoforged.neoforge.fluids.FluidStack
    getFluidInTank(int tank)
     
    int
    getTankCapacity(int tank)
     
    int
     
    boolean
    isFluidValid(int tank, net.neoforged.neoforge.fluids.FluidStack stack)
     

    Methods inherited from class org.cyclops.commoncapabilities.modcompat.vanilla.capability.VanillaEntityItemFrameCapabilityDelegator

    getCapability, getCapability, getEntity, getItemStack, updateItemStack

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • VanillaEntityItemFrameFluidHandler

      public VanillaEntityItemFrameFluidHandler(net.minecraft.world.entity.decoration.ItemFrame entity)
  • Method Details

    • getCapabilityType

      protected net.neoforged.neoforge.capabilities.ItemCapability<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem,Void> getCapabilityType()
      Specified by:
      getCapabilityType in class VanillaEntityItemFrameCapabilityDelegator<net.neoforged.neoforge.fluids.capability.IFluidHandlerItem>
    • getTanks

      public int getTanks()
      Specified by:
      getTanks in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • getFluidInTank

      @Nonnull public net.neoforged.neoforge.fluids.FluidStack getFluidInTank(int tank)
      Specified by:
      getFluidInTank in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • getTankCapacity

      public int getTankCapacity(int tank)
      Specified by:
      getTankCapacity in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • isFluidValid

      public boolean isFluidValid(int tank, @Nonnull net.neoforged.neoforge.fluids.FluidStack stack)
      Specified by:
      isFluidValid in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • fill

      public int fill(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      fill in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • drain

      public net.neoforged.neoforge.fluids.FluidStack drain(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      drain in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • drain

      public net.neoforged.neoforge.fluids.FluidStack drain(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      drain in interface net.neoforged.neoforge.fluids.capability.IFluidHandler