Interface UMenuType.DataMenuSupplier<T extends net.minecraft.world.inventory.AbstractContainerMenu>

All Superinterfaces:
net.minecraft.world.inventory.MenuType.MenuSupplier<T>
Enclosing class:
UMenuType<T 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 UMenuType.DataMenuSupplier<T extends net.minecraft.world.inventory.AbstractContainerMenu> extends net.minecraft.world.inventory.MenuType.MenuSupplier<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory)
     
    create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf buffer)
     
  • Method Details

    • create

      T create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory, net.minecraft.network.FriendlyByteBuf buffer)
    • create

      default T create(int containerId, net.minecraft.world.entity.player.Inventory playerInventory)
      Specified by:
      create in interface net.minecraft.world.inventory.MenuType.MenuSupplier<T extends net.minecraft.world.inventory.AbstractContainerMenu>