Interface ExtendedScreenHandlerFactory<D>

All Superinterfaces:
NamedScreenHandlerFactory, ScreenHandlerFactory

public interface ExtendedScreenHandlerFactory<D> extends 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 Details

    • getScreenOpeningData

      D getScreenOpeningData(ServerPlayerEntity player)
      Writes additional server -> client screen opening data to the buffer.
      Parameters:
      player - the player that is opening the screen
      Returns:
      the screen opening data