Class MountedStorageMenus

java.lang.Object
com.simibubi.create.api.contraption.storage.item.menu.MountedStorageMenus

public class MountedStorageMenus extends Object
Methods for creating generic menus usable by mounted storages.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final List<net.minecraft.world.inventory.MenuType<?>>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable net.minecraft.world.MenuProvider
    createGeneric(net.minecraft.network.chat.Component menuName, net.neoforged.neoforge.items.IItemHandlerModifiable handler, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose)
     
    static @Nullable net.minecraft.world.MenuProvider
    createGeneric9x9(net.minecraft.network.chat.Component name, net.neoforged.neoforge.items.IItemHandlerModifiable handler, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose)
     

    Methods inherited from class java.lang.Object

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

    • GENERIC_CHEST_MENUS

      public static final List<net.minecraft.world.inventory.MenuType<?>> GENERIC_CHEST_MENUS
  • Constructor Details

    • MountedStorageMenus

      public MountedStorageMenus()
  • Method Details

    • createGeneric

      @Nullable public static @Nullable net.minecraft.world.MenuProvider createGeneric(net.minecraft.network.chat.Component menuName, net.neoforged.neoforge.items.IItemHandlerModifiable handler, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose)
    • createGeneric9x9

      @Nullable public static @Nullable net.minecraft.world.MenuProvider createGeneric9x9(net.minecraft.network.chat.Component name, net.neoforged.neoforge.items.IItemHandlerModifiable handler, Predicate<net.minecraft.world.entity.player.Player> stillValid, Consumer<net.minecraft.world.entity.player.Player> onClose)