Class AdvancedMenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu,S>

java.lang.Object
net.minecraft.world.inventory.MenuType<T>
org.moddingx.libx.menu.type.AdvancedMenuType<T,S>
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.neoforged.neoforge.common.extensions.IMenuTypeExtension<T>

public class AdvancedMenuType<T extends net.minecraft.world.inventory.AbstractContainerMenu,S> extends net.minecraft.world.inventory.MenuType<T>
A menu type for advanced men factories.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraft.world.inventory.MenuType

    net.minecraft.world.inventory.MenuType.MenuSupplier<T extends net.minecraft.world.inventory.AbstractContainerMenu>
  • Field Summary

    Fields inherited from class net.minecraft.world.inventory.MenuType

    ANVIL, BEACON, BLAST_FURNACE, BREWING_STAND, CARTOGRAPHY_TABLE, CRAFTER_3x3, CRAFTING, ENCHANTMENT, FURNACE, GENERIC_3x3, GENERIC_9x1, GENERIC_9x2, GENERIC_9x3, GENERIC_9x4, GENERIC_9x5, GENERIC_9x6, GRINDSTONE, HOPPER, LECTERN, LOOM, MERCHANT, SHULKER_BOX, SMITHING, SMOKER, STONECUTTER

    Fields inherited from interface net.minecraft.world.flag.FeatureElement

    FILTERED_REGISTRIES
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu>
    AdvancedMenuType<T,Void>
    Creates a new AdvancedMenuType using the provided factory.
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu>
    AdvancedMenuType<T,Void>
    create(AdvancedMenuFactory<T,Void> factory, net.minecraft.world.flag.FeatureFlagSet featureFlags)
    Creates a new AdvancedMenuType using the provided factory.
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu, S>
    AdvancedMenuType<T,S>
    create(AdvancedMenuFactory<T,S> factory, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,S> codec)
    Creates a new AdvancedMenuType using the provided factory and StreamCodec.
    static <T extends net.minecraft.world.inventory.AbstractContainerMenu, S>
    AdvancedMenuType<T,S>
    create(AdvancedMenuFactory<T,S> factory, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,S> codec, net.minecraft.world.flag.FeatureFlagSet featureFlags)
    Creates a new AdvancedMenuType using the provided factory and StreamCodec.
    void
    open(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, S payload)
    Opens a menu of this type to the provided player.

    Methods inherited from class net.minecraft.world.inventory.MenuType

    create, create, requiredFeatures

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.world.flag.FeatureElement

    isEnabled
  • Method Details

    • open

      public void open(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.chat.Component title, S payload)
      Opens a menu of this type to the provided player.
    • create

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu> AdvancedMenuType<T,Void> create(AdvancedMenuFactory<T,Void> factory)
      Creates a new AdvancedMenuType using the provided factory.
    • create

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu> AdvancedMenuType<T,Void> create(AdvancedMenuFactory<T,Void> factory, net.minecraft.world.flag.FeatureFlagSet featureFlags)
      Creates a new AdvancedMenuType using the provided factory.
    • create

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu, S> AdvancedMenuType<T,S> create(AdvancedMenuFactory<T,S> factory, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,S> codec)
      Creates a new AdvancedMenuType using the provided factory and StreamCodec.
    • create

      public static <T extends net.minecraft.world.inventory.AbstractContainerMenu, S> AdvancedMenuType<T,S> create(AdvancedMenuFactory<T,S> factory, net.minecraft.network.codec.StreamCodec<? super net.minecraft.network.RegistryFriendlyByteBuf,S> codec, net.minecraft.world.flag.FeatureFlagSet featureFlags)
      Creates a new AdvancedMenuType using the provided factory and StreamCodec.