Interface ExtendedScreenHandlerFactory

All Superinterfaces:
net.minecraft.screen.NamedScreenHandlerFactory, net.minecraft.screen.ScreenHandlerFactory

public interface ExtendedScreenHandlerFactory extends net.minecraft.screen.NamedScreenHandlerFactory
An extension of NamedScreenHandlerFactory that can write additional data to a screen opening packet. This is used for extended screen handlers.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    writeScreenOpeningData(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.network.PacketByteBuf buf)
    Writes additional server -> client screen opening data to the buffer.

    Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory

    getDisplayName

    Methods inherited from interface net.minecraft.screen.ScreenHandlerFactory

    createMenu
  • Method Details

    • writeScreenOpeningData

      void writeScreenOpeningData(net.minecraft.server.network.ServerPlayerEntity player, net.minecraft.network.PacketByteBuf buf)
      Writes additional server -> client screen opening data to the buffer.
      Parameters:
      player - the player that is opening the screen
      buf - the packet buffer