Interface ScreenHandlerRegistry.ExtendedClientHandlerFactory<T extends net.minecraft.screen.ScreenHandler>
- Type Parameters:
T
- the screen handler type
- Enclosing class:
- ScreenHandlerRegistry
public static interface ScreenHandlerRegistry.ExtendedClientHandlerFactory<T extends net.minecraft.screen.ScreenHandler>
A factory for client-sided screen handler instances
with additional screen opening data.
- See Also:
-
Method Summary
-
Method Details
-
create
@Environment(CLIENT) T create(int syncId, net.minecraft.entity.player.PlayerInventory inventory, net.minecraft.network.PacketByteBuf buf) Creates a new client-sided screen handler with additional screen opening data.- Parameters:
syncId
- the synchronization IDinventory
- the player inventorybuf
- the packet buffer- Returns:
- the created screen handler
-