Class MountedFluidStorageType<T extends MountedFluidStorage>
java.lang.Object
com.simibubi.create.api.contraption.storage.fluid.MountedFluidStorageType<T>
- Direct Known Subclasses:
CreativeFluidTankMountedStorageType,FluidTankMountedStorageType
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.mojang.serialization.MapCodec<? extends T> static final com.mojang.serialization.Codec<MountedFluidStorageType<?>> static final SimpleRegistry<net.minecraft.world.level.block.Block, MountedFluidStorageType<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMountedFluidStorageType(com.mojang.serialization.MapCodec<? extends T> codec) -
Method Summary
Modifier and TypeMethodDescriptionabstract Tmount(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) static <B extends net.minecraft.world.level.block.Block,P>
com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B, P>> mountedFluidStorage(com.tterrag.registrate.util.entry.RegistryEntry<MountedFluidStorageType<?>, ? extends MountedFluidStorageType<?>> type) Utility for use with Registrate builders.
-
Field Details
-
CODEC
-
REGISTRY
public static final SimpleRegistry<net.minecraft.world.level.block.Block,MountedFluidStorageType<?>> REGISTRY -
codec
-
-
Constructor Details
-
MountedFluidStorageType
-
-
Method Details
-
mount
@Nullable public abstract T mount(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) -
mountedFluidStorage
public static <B extends net.minecraft.world.level.block.Block,P> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> mountedFluidStorage(com.tterrag.registrate.util.entry.RegistryEntry<MountedFluidStorageType<?>, ? extends MountedFluidStorageType<?>> type) Utility for use with Registrate builders. Creates a builder transformer that will register the given MountedFluidStorageType to a block when ready.
-