Interface IForgeServerPlayer
- All Known Implementing Classes:
- ServerPlayer
public interface IForgeServerPlayer
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidopenMenu(MenuProvider containerSupplier, Consumer<FriendlyByteBuf> extraDataWriter) Request to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactoryfor how to provide a function to consume these GUI requests on the client.default voidopenMenu(MenuProvider containerSupplier, BlockPos pos) Request to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactoryfor how to provide a function to consume these GUI requests on the client.private ServerPlayerself()
- 
Method Details- 
self
- 
openMenuRequest to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactoryfor how to provide a function to consume these GUI requests on the client.- Parameters:
- player- The player to open the GUI for
- containerSupplier- A supplier of container properties including the registry name of the container
- pos- A block pos, which will be encoded into the auxillary data for this request
 
- 
openMenuRequest to open a GUI on the client, from the server Refer toConfigScreenHandler.ConfigScreenFactoryfor how to provide a function to consume these GUI requests on the client. The maximum size for #extraDataWriter is 32600 bytes.- Parameters:
- player- The player to open the GUI for
- containerSupplier- A supplier of container properties including the registry name of the container
- extraDataWriter- Consumer to write any additional data the GUI needs
 
 
-