Class ItemEntangledChalice.FluidHandler

java.lang.Object
net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
org.cyclops.cyclopscore.capability.fluid.FluidHandlerItemCapacity
org.cyclops.evilcraft.core.fluid.FluidContainerItemWrapperWithSimulation
org.cyclops.evilcraft.item.ItemEntangledChalice.FluidHandler
All Implemented Interfaces:
net.minecraftforge.common.capabilities.ICapabilityProvider, net.minecraftforge.common.util.INBTSerializable, net.minecraftforge.fluids.capability.IFluidHandler, net.minecraftforge.fluids.capability.IFluidHandlerItem, org.cyclops.cyclopscore.capability.fluid.IFluidHandlerItemCapacity, org.cyclops.cyclopscore.capability.fluid.IFluidHandlerMutable
Enclosing class:
ItemEntangledChalice

public static class ItemEntangledChalice.FluidHandler extends FluidContainerItemWrapperWithSimulation
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack

    net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack.Consumable, net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack.SwapEmpty

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

    net.minecraftforge.fluids.capability.IFluidHandler.FluidAction
  • Field Summary

    Fields inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack

    capacity, container, FLUID_NBT_KEY
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidHandler(net.minecraft.world.item.ItemStack container, int capacity)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraftforge.fluids.FluidStack
     
    Get the tank id from the container.
    protected void
     
    protected void
    setFluid(net.minecraftforge.fluids.FluidStack fluidStack)
     
    void
    Set a new unique tank id for the container.
    void
    setTankID(String tankID)
    Set the tank id for the container.

    Methods inherited from class org.cyclops.evilcraft.core.fluid.FluidContainerItemWrapperWithSimulation

    drain, drain, fill, shouldDoDrain, shouldDoFill, wrapSimulatedDrained

    Methods inherited from class org.cyclops.cyclopscore.capability.fluid.FluidHandlerItemCapacity

    canFillFluidType, deserializeNBT, getCapability, getCapacity, serializeNBT, setCapacity, setFluidInTank

    Methods inherited from class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack

    canDrainFluidType, getContainer, getFluidInTank, getTankCapacity, getTanks, isFluidValid

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvider

    getCapability

    Methods inherited from interface net.minecraftforge.fluids.capability.IFluidHandler

    getFluidInTank, getTankCapacity, getTanks, isFluidValid

    Methods inherited from interface net.minecraftforge.fluids.capability.IFluidHandlerItem

    getContainer
  • Constructor Details

    • FluidHandler

      public FluidHandler(net.minecraft.world.item.ItemStack container, int capacity)
  • Method Details

    • getFluid

      public net.minecraftforge.fluids.FluidStack getFluid()
      Overrides:
      getFluid in class org.cyclops.cyclopscore.capability.fluid.FluidHandlerItemCapacity
    • setFluid

      protected void setFluid(net.minecraftforge.fluids.FluidStack fluidStack)
      Overrides:
      setFluid in class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
    • setContainerToEmpty

      protected void setContainerToEmpty()
      Overrides:
      setContainerToEmpty in class net.minecraftforge.fluids.capability.templates.FluidHandlerItemStack
    • getTankID

      public String getTankID()
      Get the tank id from the container.
      Returns:
      The tank id.
    • setTankID

      public void setTankID(String tankID)
      Set the tank id for the container.
      Parameters:
      tankID - The tank id.
    • setNextTankID

      public void setNextTankID()
      Set a new unique tank id for the container.