Class StorageInteractionWrapper

java.lang.Object
com.simibubi.create.foundation.blockEntity.ItemHandlerContainer
com.simibubi.create.api.contraption.storage.item.menu.StorageInteractionWrapper
All Implemented Interfaces:
net.minecraft.world.Clearable, net.minecraft.world.Container

public class StorageInteractionWrapper extends ItemHandlerContainer
  • Constructor Details

    • StorageInteractionWrapper

      public StorageInteractionWrapper(net.neoforged.neoforge.items.IItemHandlerModifiable inv, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose)
  • Method Details

    • stillValid

      public boolean stillValid(net.minecraft.world.entity.player.Player player)
      Specified by:
      stillValid in interface net.minecraft.world.Container
      Overrides:
      stillValid in class ItemHandlerContainer
    • getMaxStackSize

      public int getMaxStackSize()
      Specified by:
      getMaxStackSize in interface net.minecraft.world.Container
      Overrides:
      getMaxStackSize in class ItemHandlerContainer
    • stopOpen

      public void stopOpen(net.minecraft.world.entity.player.Player player)
      Specified by:
      stopOpen in interface net.minecraft.world.Container
      Overrides:
      stopOpen in class ItemHandlerContainer