Class CreativeFluidTankMountedStorage
java.lang.Object
com.simibubi.create.api.contraption.storage.fluid.MountedFluidStorage
com.simibubi.create.api.contraption.storage.fluid.WrapperMountedFluidStorage<CreativeFluidTankBlockEntity.CreativeSmartFluidTank>
com.simibubi.create.content.fluids.tank.storage.creative.CreativeFluidTankMountedStorage
- All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler
public class CreativeFluidTankMountedStorage
extends WrapperMountedFluidStorage<CreativeFluidTankBlockEntity.CreativeSmartFluidTank>
-
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.MapCodec<CreativeFluidTankMountedStorage> Fields inherited from class com.simibubi.create.api.contraption.storage.fluid.WrapperMountedFluidStorage
wrappedFields inherited from class com.simibubi.create.api.contraption.storage.fluid.MountedFluidStorage
STREAM_CODEC, type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreativeFluidTankMountedStorage(MountedFluidStorageType<?> type, CreativeFluidTankBlockEntity.CreativeSmartFluidTank tank) protected -
Method Summary
Modifier and TypeMethodDescriptionfromLegacy(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag nbt) 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 com.simibubi.create.api.contraption.storage.fluid.WrapperMountedFluidStorage
drain, drain, fill, getFluidInTank, getTankCapacity, getTanks, isFluidValid
-
Field Details
-
CODEC
-
-
Constructor Details
-
CreativeFluidTankMountedStorage
protected CreativeFluidTankMountedStorage(MountedFluidStorageType<?> type, CreativeFluidTankBlockEntity.CreativeSmartFluidTank tank) -
CreativeFluidTankMountedStorage
-
-
Method Details
-
unmount
public 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) Description copied from class:MountedFluidStorageUn-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.- Specified by:
unmountin classMountedFluidStorage
-
fromTank
-
fromLegacy
public static CreativeFluidTankMountedStorage fromLegacy(net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag nbt)
-