Class ContainerTypeData<T extends net.minecraft.world.inventory.AbstractContainerMenu>

java.lang.Object
net.minecraft.world.inventory.MenuType<T>
org.cyclops.cyclopscore.inventory.container.ContainerTypeData<T>
All Implemented Interfaces:
net.minecraft.world.flag.FeatureElement, net.neoforged.neoforge.common.extensions.IMenuTypeExtension<T>

public class ContainerTypeData<T extends net.minecraft.world.inventory.AbstractContainerMenu> extends net.minecraft.world.inventory.MenuType<T>
A MenuType for a MenuType.MenuSupplier, which enables additional information to be passed to containers using packet buffers. This enables more convenient syntax via lambdas than the default MenuType. For example: `new ContainerTypeData(ContainerAbilityContainer::new))`.
  • 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
  • Constructor Summary

    Constructors
    Constructor
    Description
    ContainerTypeData(net.neoforged.neoforge.network.IContainerFactory<T> factory, net.minecraft.world.flag.FeatureFlagSet featureFlagSet)
     
  • Method Summary

    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
  • Constructor Details

    • ContainerTypeData

      public ContainerTypeData(net.neoforged.neoforge.network.IContainerFactory<T> factory, net.minecraft.world.flag.FeatureFlagSet featureFlagSet)