Class FakePlayer.FakePlayerNetHandler
java.lang.Object
net.minecraft.server.network.ServerCommonPacketListenerImpl
net.minecraft.server.network.ServerGamePacketListenerImpl
net.neoforged.neoforge.common.util.FakePlayer.FakePlayerNetHandler
- All Implemented Interfaces:
- PacketListener,- ServerCommonPacketListener,- ServerCookiePacketListener,- ServerGamePacketListener,- ServerPacketListener,- ServerPingPacketListener,- ServerboundPacketListener,- TickablePacketListener,- ServerPlayerConnection,- ICommonPacketListener,- IServerCommonPacketListenerExtension,- IServerGamePacketListenerExtension
- Enclosing class:
- FakePlayer
@ParametersAreNonnullByDefault
private static class FakePlayer.FakePlayerNetHandler
extends ServerGamePacketListenerImpl
- 
Field SummaryFieldsFields inherited from class net.minecraft.server.network.ServerGamePacketListenerImplchunkSender, playerFields inherited from class net.minecraft.server.network.ServerCommonPacketListenerImplconnection, connectionType, LATENCY_CHECK_INTERVAL, server
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidackBlockChangesUpTo(int sequence) voidaddPendingMessage(PlayerChatMessage message) voiddisconnect(Component message) Triggers a disconnection with the given reason.voidvoidhandleAnimate(ServerboundSwingPacket packet) voidvoidvoidhandleChat(ServerboundChatPacket packet) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidhandleKeepAlive(ServerboundKeepAlivePacket p_294627_) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidonDisconnect(Component message) voidvoidSends a packet to the target of this listener.voidsend(Packet<?> packet, @Nullable PacketSendListener sendListener) Sends a packet to the client of this listener.voidsendDisguisedChatMessage(Component content, ChatType.Bound boundChatType) voidsendPlayerChatMessage(PlayerChatMessage message, ChatType.Bound boundChatType) voidteleport(double x, double y, double z, float yaw, float pitch) voidteleport(double x, double y, double z, float yaw, float pitch, Set<RelativeMovement> relativeSet) voidtick()Methods inherited from class net.minecraft.server.network.ServerGamePacketListenerImplgetPlayer, getRemoteAddress, handleChunkBatchReceived, handleConfigurationAcknowledged, handleContainerSlotStateChanged, handleDebugSampleSubscription, handlePingRequest, handleSignedChatCommand, isAcceptingMessages, playerProfile, shouldHandleMessage, switchToConfigMethods inherited from class net.minecraft.server.network.ServerCommonPacketListenerImplcreateCookie, createCookie, getConnection, getConnectionType, getMainThreadEventLoop, getOwner, handleCookieResponse, handlePong, isSingleplayerOwner, keepConnectionAlive, latency, resumeFlushing, suspendFlushingMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.neoforge.common.extensions.ICommonPacketListenergetConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannelMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtensionsend, sendMethods inherited from interface net.neoforged.neoforge.common.extensions.IServerGamePacketListenerExtensionsendBundled, sendBundledMethods inherited from interface net.minecraft.network.PacketListenerfillCrashReport, fillListenerSpecificCrashDetailsMethods inherited from interface net.minecraft.network.ServerboundPacketListenerflowMethods inherited from interface net.minecraft.network.protocol.common.ServerCommonPacketListenerhandlePongMethods inherited from interface net.minecraft.network.protocol.cookie.ServerCookiePacketListenerhandleCookieResponseMethods inherited from interface net.minecraft.network.protocol.game.ServerGamePacketListenerprotocolMethods inherited from interface net.minecraft.network.protocol.game.ServerPacketListeneronPacketError
- 
Field Details- 
DUMMY_CONNECTION
 
- 
- 
Constructor Details- 
FakePlayerNetHandler
 
- 
- 
Method Details- 
tickpublic void tick()- Specified by:
- tickin interface- TickablePacketListener
- Overrides:
- tickin class- ServerGamePacketListenerImpl
 
- 
resetPositionpublic void resetPosition()- Overrides:
- resetPositionin class- ServerGamePacketListenerImpl
 
- 
disconnectDescription copied from interface:ICommonPacketListenerTriggers a disconnection with the given reason.- Specified by:
- disconnectin interface- ICommonPacketListener
- Overrides:
- disconnectin class- ServerCommonPacketListenerImpl
- Parameters:
- message- The reason for the disconnection
 
- 
handlePlayerInput- Specified by:
- handlePlayerInputin interface- ServerGamePacketListener
- Overrides:
- handlePlayerInputin class- ServerGamePacketListenerImpl
 
- 
handleMoveVehicle- Specified by:
- handleMoveVehiclein interface- ServerGamePacketListener
- Overrides:
- handleMoveVehiclein class- ServerGamePacketListenerImpl
 
- 
handleAcceptTeleportPacket- Specified by:
- handleAcceptTeleportPacketin interface- ServerGamePacketListener
- Overrides:
- handleAcceptTeleportPacketin class- ServerGamePacketListenerImpl
 
- 
handleRecipeBookSeenRecipePacket- Specified by:
- handleRecipeBookSeenRecipePacketin interface- ServerGamePacketListener
- Overrides:
- handleRecipeBookSeenRecipePacketin class- ServerGamePacketListenerImpl
 
- 
handleRecipeBookChangeSettingsPacket- Specified by:
- handleRecipeBookChangeSettingsPacketin interface- ServerGamePacketListener
- Overrides:
- handleRecipeBookChangeSettingsPacketin class- ServerGamePacketListenerImpl
 
- 
handleSeenAdvancements- Specified by:
- handleSeenAdvancementsin interface- ServerGamePacketListener
- Overrides:
- handleSeenAdvancementsin class- ServerGamePacketListenerImpl
 
- 
handleCustomCommandSuggestions- Specified by:
- handleCustomCommandSuggestionsin interface- ServerGamePacketListener
- Overrides:
- handleCustomCommandSuggestionsin class- ServerGamePacketListenerImpl
 
- 
handleSetCommandBlock- Specified by:
- handleSetCommandBlockin interface- ServerGamePacketListener
- Overrides:
- handleSetCommandBlockin class- ServerGamePacketListenerImpl
 
- 
handleSetCommandMinecart- Specified by:
- handleSetCommandMinecartin interface- ServerGamePacketListener
- Overrides:
- handleSetCommandMinecartin class- ServerGamePacketListenerImpl
 
- 
handlePickItem- Specified by:
- handlePickItemin interface- ServerGamePacketListener
- Overrides:
- handlePickItemin class- ServerGamePacketListenerImpl
 
- 
handleRenameItem- Specified by:
- handleRenameItemin interface- ServerGamePacketListener
- Overrides:
- handleRenameItemin class- ServerGamePacketListenerImpl
 
- 
handleSetBeaconPacket- Specified by:
- handleSetBeaconPacketin interface- ServerGamePacketListener
- Overrides:
- handleSetBeaconPacketin class- ServerGamePacketListenerImpl
 
- 
handleSetStructureBlock- Specified by:
- handleSetStructureBlockin interface- ServerGamePacketListener
- Overrides:
- handleSetStructureBlockin class- ServerGamePacketListenerImpl
 
- 
handleSetJigsawBlock- Specified by:
- handleSetJigsawBlockin interface- ServerGamePacketListener
- Overrides:
- handleSetJigsawBlockin class- ServerGamePacketListenerImpl
 
- 
handleJigsawGenerate- Specified by:
- handleJigsawGeneratein interface- ServerGamePacketListener
- Overrides:
- handleJigsawGeneratein class- ServerGamePacketListenerImpl
 
- 
handleSelectTrade- Specified by:
- handleSelectTradein interface- ServerGamePacketListener
- Overrides:
- handleSelectTradein class- ServerGamePacketListenerImpl
 
- 
handleEditBook- Specified by:
- handleEditBookin interface- ServerGamePacketListener
- Overrides:
- handleEditBookin class- ServerGamePacketListenerImpl
 
- 
handleEntityTagQuery- Specified by:
- handleEntityTagQueryin interface- ServerGamePacketListener
- Overrides:
- handleEntityTagQueryin class- ServerGamePacketListenerImpl
 
- 
handleBlockEntityTagQuery- Specified by:
- handleBlockEntityTagQueryin interface- ServerGamePacketListener
- Overrides:
- handleBlockEntityTagQueryin class- ServerGamePacketListenerImpl
 
- 
handleMovePlayer- Specified by:
- handleMovePlayerin interface- ServerGamePacketListener
- Overrides:
- handleMovePlayerin class- ServerGamePacketListenerImpl
 
- 
teleportpublic void teleport(double x, double y, double z, float yaw, float pitch) - Overrides:
- teleportin class- ServerGamePacketListenerImpl
 
- 
handlePlayerAction- Specified by:
- handlePlayerActionin interface- ServerGamePacketListener
- Overrides:
- handlePlayerActionin class- ServerGamePacketListenerImpl
 
- 
handleUseItemOn- Specified by:
- handleUseItemOnin interface- ServerGamePacketListener
- Overrides:
- handleUseItemOnin class- ServerGamePacketListenerImpl
 
- 
handleUseItem- Specified by:
- handleUseItemin interface- ServerGamePacketListener
- Overrides:
- handleUseItemin class- ServerGamePacketListenerImpl
 
- 
handleTeleportToEntityPacket- Specified by:
- handleTeleportToEntityPacketin interface- ServerGamePacketListener
- Overrides:
- handleTeleportToEntityPacketin class- ServerGamePacketListenerImpl
 
- 
handleResourcePackResponse- Specified by:
- handleResourcePackResponsein interface- ServerCommonPacketListener
- Overrides:
- handleResourcePackResponsein class- ServerCommonPacketListenerImpl
 
- 
handlePaddleBoat- Specified by:
- handlePaddleBoatin interface- ServerGamePacketListener
- Overrides:
- handlePaddleBoatin class- ServerGamePacketListenerImpl
 
- 
onDisconnect- Specified by:
- onDisconnectin interface- PacketListener
- Overrides:
- onDisconnectin class- ServerGamePacketListenerImpl
 
- 
sendDescription copied from interface:ICommonPacketListenerSends a packet to the target of this listener.- Specified by:
- sendin interface- ICommonPacketListener
- Specified by:
- sendin interface- ServerPlayerConnection
- Overrides:
- sendin class- ServerCommonPacketListenerImpl
 
- 
sendDescription copied from interface:IServerCommonPacketListenerExtensionSends a packet to the client of this listener.- Specified by:
- sendin interface- IServerCommonPacketListenerExtension
- Overrides:
- sendin class- ServerCommonPacketListenerImpl
- Parameters:
- sendListener- An optional callback for when the payload is sent
 
- 
handleSetCarriedItem- Specified by:
- handleSetCarriedItemin interface- ServerGamePacketListener
- Overrides:
- handleSetCarriedItemin class- ServerGamePacketListenerImpl
 
- 
handleChat- Specified by:
- handleChatin interface- ServerGamePacketListener
- Overrides:
- handleChatin class- ServerGamePacketListenerImpl
 
- 
handleAnimate- Specified by:
- handleAnimatein interface- ServerGamePacketListener
- Overrides:
- handleAnimatein class- ServerGamePacketListenerImpl
 
- 
handlePlayerCommand- Specified by:
- handlePlayerCommandin interface- ServerGamePacketListener
- Overrides:
- handlePlayerCommandin class- ServerGamePacketListenerImpl
 
- 
handleInteract- Specified by:
- handleInteractin interface- ServerGamePacketListener
- Overrides:
- handleInteractin class- ServerGamePacketListenerImpl
 
- 
handleClientCommand- Specified by:
- handleClientCommandin interface- ServerGamePacketListener
- Overrides:
- handleClientCommandin class- ServerGamePacketListenerImpl
 
- 
handleContainerClose- Specified by:
- handleContainerClosein interface- ServerGamePacketListener
- Overrides:
- handleContainerClosein class- ServerGamePacketListenerImpl
 
- 
handleContainerClick- Specified by:
- handleContainerClickin interface- ServerGamePacketListener
- Overrides:
- handleContainerClickin class- ServerGamePacketListenerImpl
 
- 
handlePlaceRecipe- Specified by:
- handlePlaceRecipein interface- ServerGamePacketListener
- Overrides:
- handlePlaceRecipein class- ServerGamePacketListenerImpl
 
- 
handleContainerButtonClick- Specified by:
- handleContainerButtonClickin interface- ServerGamePacketListener
- Overrides:
- handleContainerButtonClickin class- ServerGamePacketListenerImpl
 
- 
handleSetCreativeModeSlot- Specified by:
- handleSetCreativeModeSlotin interface- ServerGamePacketListener
- Overrides:
- handleSetCreativeModeSlotin class- ServerGamePacketListenerImpl
 
- 
handleSignUpdate- Specified by:
- handleSignUpdatein interface- ServerGamePacketListener
- Overrides:
- handleSignUpdatein class- ServerGamePacketListenerImpl
 
- 
handleKeepAlive- Specified by:
- handleKeepAlivein interface- ServerCommonPacketListener
- Overrides:
- handleKeepAlivein class- ServerCommonPacketListenerImpl
 
- 
handleCustomPayload- Specified by:
- handleCustomPayloadin interface- ServerCommonPacketListener
- Overrides:
- handleCustomPayloadin class- ServerGamePacketListenerImpl
 
- 
handleClientInformation- Specified by:
- handleClientInformationin interface- ServerCommonPacketListener
- Overrides:
- handleClientInformationin class- ServerGamePacketListenerImpl
 
- 
handlePlayerAbilities- Specified by:
- handlePlayerAbilitiesin interface- ServerGamePacketListener
- Overrides:
- handlePlayerAbilitiesin class- ServerGamePacketListenerImpl
 
- 
handleChangeDifficulty- Specified by:
- handleChangeDifficultyin interface- ServerGamePacketListener
- Overrides:
- handleChangeDifficultyin class- ServerGamePacketListenerImpl
 
- 
handleLockDifficulty- Specified by:
- handleLockDifficultyin interface- ServerGamePacketListener
- Overrides:
- handleLockDifficultyin class- ServerGamePacketListenerImpl
 
- 
teleportpublic void teleport(double x, double y, double z, float yaw, float pitch, Set<RelativeMovement> relativeSet) - Overrides:
- teleportin class- ServerGamePacketListenerImpl
 
- 
ackBlockChangesUpTopublic void ackBlockChangesUpTo(int sequence) - Overrides:
- ackBlockChangesUpToin class- ServerGamePacketListenerImpl
 
- 
handleChatCommand- Specified by:
- handleChatCommandin interface- ServerGamePacketListener
- Overrides:
- handleChatCommandin class- ServerGamePacketListenerImpl
 
- 
handleChatAck- Specified by:
- handleChatAckin interface- ServerGamePacketListener
- Overrides:
- handleChatAckin class- ServerGamePacketListenerImpl
 
- 
addPendingMessage- Overrides:
- addPendingMessagein class- ServerGamePacketListenerImpl
 
- 
sendPlayerChatMessage- Overrides:
- sendPlayerChatMessagein class- ServerGamePacketListenerImpl
 
- 
sendDisguisedChatMessage- Overrides:
- sendDisguisedChatMessagein class- ServerGamePacketListenerImpl
 
- 
handleChatSessionUpdate- Specified by:
- handleChatSessionUpdatein interface- ServerGamePacketListener
- Overrides:
- handleChatSessionUpdatein class- ServerGamePacketListenerImpl
 
 
-