Class CreativeCrateMountedStorage

java.lang.Object
com.simibubi.create.api.contraption.storage.item.MountedItemStorage
com.simibubi.create.content.logistics.crate.CreativeCrateMountedStorage
All Implemented Interfaces:
net.neoforged.neoforge.items.IItemHandler, net.neoforged.neoforge.items.IItemHandlerModifiable

public class CreativeCrateMountedStorage extends MountedItemStorage
  • Field Details

  • Constructor Details

    • CreativeCrateMountedStorage

      protected CreativeCrateMountedStorage(MountedItemStorageType<?> type, net.minecraft.world.item.ItemStack suppliedStack)
    • CreativeCrateMountedStorage

      public CreativeCrateMountedStorage(net.minecraft.world.item.ItemStack suppliedStack)
  • 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: MountedItemStorage
      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.
      Specified by:
      unmount in class MountedItemStorage
    • getSlots

      public int getSlots()
    • getStackInSlot

      @NotNull public @NotNull net.minecraft.world.item.ItemStack getStackInSlot(int slot)
    • setStackInSlot

      public void setStackInSlot(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)
    • insertItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack insertItem(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack, boolean simulate)
    • extractItem

      @NotNull public @NotNull net.minecraft.world.item.ItemStack extractItem(int slot, int amount, boolean simulate)
    • getSlotLimit

      public int getSlotLimit(int slot)
    • isItemValid

      public boolean isItemValid(int slot, @NotNull @NotNull net.minecraft.world.item.ItemStack stack)