Class MountedFluidStorageType<T extends MountedFluidStorage>

java.lang.Object
com.simibubi.create.api.contraption.storage.fluid.MountedFluidStorageType<T>
Direct Known Subclasses:
CreativeFluidTankMountedStorageType, FluidTankMountedStorageType

public abstract class MountedFluidStorageType<T extends MountedFluidStorage> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final 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

    Constructors
    Modifier
    Constructor
    Description
    protected
    MountedFluidStorageType(com.mojang.serialization.MapCodec<? extends T> codec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract T
    mount(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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • MountedFluidStorageType

      protected MountedFluidStorageType(com.mojang.serialization.MapCodec<? extends T> codec)
  • 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.