Interface ServerGamePacketListener
- All Superinterfaces:
ICommonPacketListener,IServerCommonPacketListenerExtension,IServerGamePacketListenerExtension,PacketListener,ServerboundPacketListener,ServerCommonPacketListener,ServerCookiePacketListener,ServerPacketListener,ServerPingPacketListener
- All Known Implementing Classes:
FakePlayer.FakePlayerNetHandler,ServerGamePacketListenerImpl
public interface ServerGamePacketListener
extends ServerCommonPacketListener, ServerPingPacketListener, IServerGamePacketListenerExtension
PacketListener for the server side of the PLAY protocol.
-
Field Summary
Fields inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
LOGGER -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidhandleAnimate(ServerboundSwingPacket packet) voidvoidvoidvoidvoidhandleChat(ServerboundChatPacket packet) Process chat messages (broadcast back to clients) and commands (executes)voidvoidvoidvoidvoidProcesses the client status updates: respawn attempt from player, opening statistics or achievements, or acquiring 'open inventory' achievementvoidvoidvoidEnchants the item identified by the packet given some convoluted conditions (matching window, which should/shouldn't be in use?)voidExecutes a container/inventory slot manipulation as indicated by the packet.voidProcesses the client closing windows (container)voidvoidThis method is only called for manual tab-completion (theminecraft:ask_serversuggestion provider).voidvoidvoidvoidProcesses left and right clicks on entitiesvoidvoidvoidProcesses clients perspective on player positioning and/or orientationvoidvoidvoidvoidvoidvoidProcesses a player starting/stopping flyingvoidProcesses the player initiating/stopping digging on a particular spot, as well as a player dropping itemsvoidProcesses a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump height of the horse the player is ridingvoidProcesses player movement input.voidvoidvoidvoidvoidvoidvoidUpdates which quickbar slot is selectedvoidvoidvoidUpdate the server with an ItemStack in a slot.voidvoidvoidvoidvoidvoidvoidvoidCalled when a client is using an item while not pointing at a block, but simply using an itemvoiddefault ConnectionProtocolprotocol()Methods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListener
disconnect, getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtension
send, send, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerGamePacketListenerExtension
sendBundled, sendBundledMethods inherited from interface net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails, isAcceptingMessages, onDisconnect, shouldHandleMessageMethods inherited from interface net.minecraft.network.ServerboundPacketListener
flowMethods inherited from interface net.minecraft.network.protocol.common.ServerCommonPacketListener
handleClientInformation, handleCustomClickAction, handleCustomPayload, handleKeepAlive, handlePong, handleResourcePackResponseMethods inherited from interface net.minecraft.network.protocol.cookie.ServerCookiePacketListener
handleCookieResponseMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
onPacketErrorMethods inherited from interface net.minecraft.network.protocol.ping.ServerPingPacketListener
handlePingRequest
-
Method Details
-
protocol
- Specified by:
protocolin interfacePacketListener
-
handleAnimate
-
handleChat
Process chat messages (broadcast back to clients) and commands (executes) -
handleChatCommand
-
handleSignedChatCommand
-
handleChatAck
-
handleClientCommand
Processes the client status updates: respawn attempt from player, opening statistics or achievements, or acquiring 'open inventory' achievement -
handleContainerButtonClick
Enchants the item identified by the packet given some convoluted conditions (matching window, which should/shouldn't be in use?) -
handleContainerClick
Executes a container/inventory slot manipulation as indicated by the packet. Sends the serverside result if they didn't match the indicated result and prevents further manipulation by the player until he confirms that it has the same open container/inventory -
handlePlaceRecipe
-
handleContainerClose
Processes the client closing windows (container) -
handleInteract
Processes left and right clicks on entities -
handleMovePlayer
Processes clients perspective on player positioning and/or orientation -
handlePlayerAbilities
Processes a player starting/stopping flying -
handlePlayerAction
Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items -
handlePlayerCommand
Processes a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump height of the horse the player is riding -
handlePlayerInput
Processes player movement input. Includes walking, strafing, jumping, and sneaking. Excludes riding and toggling flying/sprinting. -
handleSetCarriedItem
Updates which quickbar slot is selected -
handleSetCreativeModeSlot
Update the server with an ItemStack in a slot. -
handleSignUpdate
-
handleUseItemOn
-
handleUseItem
Called when a client is using an item while not pointing at a block, but simply using an item -
handleTeleportToEntityPacket
-
handlePaddleBoat
-
handleMoveVehicle
-
handleAcceptTeleportPacket
-
handleAcceptPlayerLoad
-
handleRecipeBookSeenRecipePacket
-
handleBundleItemSelectedPacket
-
handleRecipeBookChangeSettingsPacket
-
handleSeenAdvancements
-
handleCustomCommandSuggestions
This method is only called for manual tab-completion (theminecraft:ask_serversuggestion provider). -
handleSetCommandBlock
-
handleSetCommandMinecart
-
handlePickItemFromBlock
-
handlePickItemFromEntity
-
handleRenameItem
-
handleSetBeaconPacket
-
handleSetStructureBlock
-
handleSetTestBlock
-
handleTestInstanceBlockAction
-
handleSelectTrade
-
handleEditBook
-
handleEntityTagQuery
-
handleContainerSlotStateChanged
-
handleBlockEntityTagQuery
-
handleSetJigsawBlock
-
handleJigsawGenerate
-
handleChangeDifficulty
-
handleChangeGameMode
-
handleLockDifficulty
-
handleChatSessionUpdate
-
handleConfigurationAcknowledged
-
handleChunkBatchReceived
-
handleDebugSampleSubscription
-
handleClientTickEnd
-