Class MountedFluidStorage

java.lang.Object
com.simibubi.create.api.contraption.storage.fluid.MountedFluidStorage
All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler
Direct Known Subclasses:
WrapperMountedFluidStorage

public abstract class MountedFluidStorage extends Object implements net.neoforged.neoforge.fluids.capability.IFluidHandler
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<MountedFluidStorage>
     
    static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,MountedFluidStorage>
     
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract void
    unmount(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
    Un-mount this storage back into the world.

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler

    drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValid
  • Field Details

  • Constructor Details

  • Method Details

    • unmount

      public abstract void unmount(net.minecraft.world.level.Level level, net.minecraft.world.level.block.state.BlockState state, net.minecraft.core.BlockPos pos, @Nullable @Nullable net.minecraft.world.level.block.entity.BlockEntity be)
      Un-mount this storage back into the world. The expected storage type of the target block has already been checked to make sure it matches this storage's type.