Interface ExtraDataMenuProvider
- All Superinterfaces:
net.minecraft.world.inventory.MenuConstructor,net.minecraft.world.MenuProvider
public interface ExtraDataMenuProvider
extends net.minecraft.world.MenuProvider
A menu provider that can be used to send extra data to the client.
-
Method Summary
Modifier and TypeMethodDescriptionvoidwriteExtraData(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.FriendlyByteBuf buffer) Writes the extra data to the buffer to be sent to the client when the menu is opened.Methods inherited from interface net.minecraft.world.inventory.MenuConstructor
createMenuMethods inherited from interface net.minecraft.world.MenuProvider
getDisplayName
-
Method Details
-
writeExtraData
void writeExtraData(net.minecraft.server.level.ServerPlayer player, net.minecraft.network.FriendlyByteBuf buffer) Writes the extra data to the buffer to be sent to the client when the menu is opened.- Parameters:
player- The player that is opening the menu.buffer- The buffer to write the data to.
-