Class MountedItemStorageType<T extends MountedItemStorage>
java.lang.Object
com.simibubi.create.api.contraption.storage.item.MountedItemStorageType<T>
- Direct Known Subclasses:
CreativeCrateMountedStorageType,DepotMountedStorageType,ItemVaultMountedStorageType,SimpleMountedStorageType,ToolboxMountedStorageType
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.mojang.serialization.MapCodec<? extends T> static final com.mojang.serialization.Codec<MountedItemStorageType<?>> final net.minecraft.core.Holder.Reference<MountedItemStorageType<?>> static final SimpleRegistry<net.minecraft.world.level.block.Block, MountedItemStorageType<?>> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMountedItemStorageType(com.mojang.serialization.MapCodec<? extends T> codec) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanis(net.minecraft.tags.TagKey<MountedItemStorageType<?>> tag) abstract 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>> mountedItemStorage(com.tterrag.registrate.util.entry.RegistryEntry<MountedItemStorageType<?>, ? extends MountedItemStorageType<?>> type) Utility for use with Registrate builders.
-
Field Details
-
CODEC
-
REGISTRY
public static final SimpleRegistry<net.minecraft.world.level.block.Block,MountedItemStorageType<?>> REGISTRY -
codec
-
holder
-
-
Constructor Details
-
MountedItemStorageType
-
-
Method Details
-
is
-
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) -
mountedItemStorage
public static <B extends net.minecraft.world.level.block.Block,P> com.tterrag.registrate.util.nullness.NonNullUnaryOperator<com.tterrag.registrate.builders.BlockBuilder<B,P>> mountedItemStorage(com.tterrag.registrate.util.entry.RegistryEntry<MountedItemStorageType<?>, ? extends MountedItemStorageType<?>> type) Utility for use with Registrate builders. Creates a builder transformer that will register the given MountedItemStorageType to a block when ready.
-