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
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MountedFluidStorage> static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, MountedFluidStorage> final MountedFluidStorageType<? extends MountedFluidStorage> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidunmount(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, waitMethods inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler
drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
Field Details
-
CODEC
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,MountedFluidStorage> STREAM_CODEC -
type
-
-
Constructor Details
-
MountedFluidStorage
-
-
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.
-