Interface MenuBuilder.ContainerFactory<M extends net.minecraft.world.inventory.AbstractContainerMenu>

Enclosing class:
MenuBuilder<M extends net.minecraft.world.inventory.AbstractContainerMenu>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface MenuBuilder.ContainerFactory<M extends net.minecraft.world.inventory.AbstractContainerMenu>
  • Method Summary

    Modifier and Type
    Method
    Description
    create(net.minecraft.world.inventory.MenuType<M> type, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, @Nullable net.minecraft.network.RegistryFriendlyByteBuf extraData)
     
  • Method Details

    • create

      M create(net.minecraft.world.inventory.MenuType<M> type, int containerId, net.minecraft.world.entity.player.Inventory playerInventory, @Nullable @Nullable net.minecraft.network.RegistryFriendlyByteBuf extraData)