接口 IContainerFactory<T extends AbstractContainerMenu>

所有超级接口:
MenuType.MenuSupplier<T>

public interface IContainerFactory<T extends AbstractContainerMenu> extends MenuType.MenuSupplier<T>
This extension of MenuType.MenuSupplier allows a mod to handle the extra data it sent to the client when creating the client-side copy of a menu.
  • 方法概要

    修饰符和类型
    方法
    说明
    default T
    create(int p_create_1_, Inventory p_create_2_)
     
    create(int windowId, Inventory inv, RegistryFriendlyByteBuf data)
    Constructs a menu instance on the client-side in response to a menu being opened on the server-side for a player.