Package net.minecraftforge.common.util
Class FakePlayer.FakePlayerNetHandler
java.lang.Object
net.minecraft.server.network.ServerGamePacketListenerImpl
net.minecraftforge.common.util.FakePlayer.FakePlayerNetHandler
- All Implemented Interfaces:
PacketListener
,ServerGamePacketListener
,ServerPacketListener
,TickablePacketListener
,ServerPlayerConnection
- Enclosing class:
- FakePlayer
@ParametersAreNonnullByDefault
private static class FakePlayer.FakePlayerNetHandler
extends ServerGamePacketListenerImpl
-
Field Summary
Fields inherited from class net.minecraft.server.network.ServerGamePacketListenerImpl
connection, MAX_INTERACTION_DISTANCE, player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ackBlockChangesUpTo
(int sequence) void
addPendingMessage
(PlayerChatMessage message) void
disconnect
(Component message) void
dismount
(double x, double y, double z, float yaw, float pitch) void
void
handleAnimate
(ServerboundSwingPacket packet) void
void
void
handleChat
(ServerboundChatPacket packet) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
onDisconnect
(Component message) void
void
void
send
(Packet<?> packet, @Nullable PacketSendListener sendListener) void
sendDisguisedChatMessage
(Component content, ChatType.Bound boundChatType) void
sendPlayerChatMessage
(PlayerChatMessage message, ChatType.Bound boundChatType) void
teleport
(double x, double y, double z, float yaw, float pitch) void
teleport
(double x, double y, double z, float yaw, float pitch, Set<ClientboundPlayerPositionPacket.RelativeArgument> flags) void
teleport
(double x, double y, double z, float yaw, float pitch, Set<ClientboundPlayerPositionPacket.RelativeArgument> relativeSet, boolean dismountVehicle) void
tick()
Methods inherited from class net.minecraft.server.network.ServerGamePacketListenerImpl
getConnection, getPlayer, handlePong
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.protocol.game.ServerPacketListener
shouldPropagateHandlingExceptions
-
Field Details
-
DUMMY_CONNECTION
-
-
Constructor Details
-
FakePlayerNetHandler
-
-
Method Details
-
tick
public void tick()- Specified by:
tick
in interfaceTickablePacketListener
- Overrides:
tick
in classServerGamePacketListenerImpl
-
resetPosition
public void resetPosition()- Overrides:
resetPosition
in classServerGamePacketListenerImpl
-
disconnect
- Overrides:
disconnect
in classServerGamePacketListenerImpl
-
handlePlayerInput
- Specified by:
handlePlayerInput
in interfaceServerGamePacketListener
- Overrides:
handlePlayerInput
in classServerGamePacketListenerImpl
-
handleMoveVehicle
- Specified by:
handleMoveVehicle
in interfaceServerGamePacketListener
- Overrides:
handleMoveVehicle
in classServerGamePacketListenerImpl
-
handleAcceptTeleportPacket
- Specified by:
handleAcceptTeleportPacket
in interfaceServerGamePacketListener
- Overrides:
handleAcceptTeleportPacket
in classServerGamePacketListenerImpl
-
handleRecipeBookSeenRecipePacket
- Specified by:
handleRecipeBookSeenRecipePacket
in interfaceServerGamePacketListener
- Overrides:
handleRecipeBookSeenRecipePacket
in classServerGamePacketListenerImpl
-
handleRecipeBookChangeSettingsPacket
- Specified by:
handleRecipeBookChangeSettingsPacket
in interfaceServerGamePacketListener
- Overrides:
handleRecipeBookChangeSettingsPacket
in classServerGamePacketListenerImpl
-
handleSeenAdvancements
- Specified by:
handleSeenAdvancements
in interfaceServerGamePacketListener
- Overrides:
handleSeenAdvancements
in classServerGamePacketListenerImpl
-
handleCustomCommandSuggestions
- Specified by:
handleCustomCommandSuggestions
in interfaceServerGamePacketListener
- Overrides:
handleCustomCommandSuggestions
in classServerGamePacketListenerImpl
-
handleSetCommandBlock
- Specified by:
handleSetCommandBlock
in interfaceServerGamePacketListener
- Overrides:
handleSetCommandBlock
in classServerGamePacketListenerImpl
-
handleSetCommandMinecart
- Specified by:
handleSetCommandMinecart
in interfaceServerGamePacketListener
- Overrides:
handleSetCommandMinecart
in classServerGamePacketListenerImpl
-
handlePickItem
- Specified by:
handlePickItem
in interfaceServerGamePacketListener
- Overrides:
handlePickItem
in classServerGamePacketListenerImpl
-
handleRenameItem
- Specified by:
handleRenameItem
in interfaceServerGamePacketListener
- Overrides:
handleRenameItem
in classServerGamePacketListenerImpl
-
handleSetBeaconPacket
- Specified by:
handleSetBeaconPacket
in interfaceServerGamePacketListener
- Overrides:
handleSetBeaconPacket
in classServerGamePacketListenerImpl
-
handleSetStructureBlock
- Specified by:
handleSetStructureBlock
in interfaceServerGamePacketListener
- Overrides:
handleSetStructureBlock
in classServerGamePacketListenerImpl
-
handleSetJigsawBlock
- Specified by:
handleSetJigsawBlock
in interfaceServerGamePacketListener
- Overrides:
handleSetJigsawBlock
in classServerGamePacketListenerImpl
-
handleJigsawGenerate
- Specified by:
handleJigsawGenerate
in interfaceServerGamePacketListener
- Overrides:
handleJigsawGenerate
in classServerGamePacketListenerImpl
-
handleSelectTrade
- Specified by:
handleSelectTrade
in interfaceServerGamePacketListener
- Overrides:
handleSelectTrade
in classServerGamePacketListenerImpl
-
handleEditBook
- Specified by:
handleEditBook
in interfaceServerGamePacketListener
- Overrides:
handleEditBook
in classServerGamePacketListenerImpl
-
handleEntityTagQuery
- Specified by:
handleEntityTagQuery
in interfaceServerGamePacketListener
- Overrides:
handleEntityTagQuery
in classServerGamePacketListenerImpl
-
handleBlockEntityTagQuery
- Specified by:
handleBlockEntityTagQuery
in interfaceServerGamePacketListener
- Overrides:
handleBlockEntityTagQuery
in classServerGamePacketListenerImpl
-
handleMovePlayer
- Specified by:
handleMovePlayer
in interfaceServerGamePacketListener
- Overrides:
handleMovePlayer
in classServerGamePacketListenerImpl
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch) - Overrides:
teleport
in classServerGamePacketListenerImpl
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch, Set<ClientboundPlayerPositionPacket.RelativeArgument> flags) - Overrides:
teleport
in classServerGamePacketListenerImpl
-
handlePlayerAction
- Specified by:
handlePlayerAction
in interfaceServerGamePacketListener
- Overrides:
handlePlayerAction
in classServerGamePacketListenerImpl
-
handleUseItemOn
- Specified by:
handleUseItemOn
in interfaceServerGamePacketListener
- Overrides:
handleUseItemOn
in classServerGamePacketListenerImpl
-
handleUseItem
- Specified by:
handleUseItem
in interfaceServerGamePacketListener
- Overrides:
handleUseItem
in classServerGamePacketListenerImpl
-
handleTeleportToEntityPacket
- Specified by:
handleTeleportToEntityPacket
in interfaceServerGamePacketListener
- Overrides:
handleTeleportToEntityPacket
in classServerGamePacketListenerImpl
-
handleResourcePackResponse
- Specified by:
handleResourcePackResponse
in interfaceServerGamePacketListener
- Overrides:
handleResourcePackResponse
in classServerGamePacketListenerImpl
-
handlePaddleBoat
- Specified by:
handlePaddleBoat
in interfaceServerGamePacketListener
- Overrides:
handlePaddleBoat
in classServerGamePacketListenerImpl
-
onDisconnect
- Specified by:
onDisconnect
in interfacePacketListener
- Overrides:
onDisconnect
in classServerGamePacketListenerImpl
-
send
- Specified by:
send
in interfaceServerPlayerConnection
- Overrides:
send
in classServerGamePacketListenerImpl
-
send
- Overrides:
send
in classServerGamePacketListenerImpl
-
handleSetCarriedItem
- Specified by:
handleSetCarriedItem
in interfaceServerGamePacketListener
- Overrides:
handleSetCarriedItem
in classServerGamePacketListenerImpl
-
handleChat
- Specified by:
handleChat
in interfaceServerGamePacketListener
- Overrides:
handleChat
in classServerGamePacketListenerImpl
-
handleAnimate
- Specified by:
handleAnimate
in interfaceServerGamePacketListener
- Overrides:
handleAnimate
in classServerGamePacketListenerImpl
-
handlePlayerCommand
- Specified by:
handlePlayerCommand
in interfaceServerGamePacketListener
- Overrides:
handlePlayerCommand
in classServerGamePacketListenerImpl
-
handleInteract
- Specified by:
handleInteract
in interfaceServerGamePacketListener
- Overrides:
handleInteract
in classServerGamePacketListenerImpl
-
handleClientCommand
- Specified by:
handleClientCommand
in interfaceServerGamePacketListener
- Overrides:
handleClientCommand
in classServerGamePacketListenerImpl
-
handleContainerClose
- Specified by:
handleContainerClose
in interfaceServerGamePacketListener
- Overrides:
handleContainerClose
in classServerGamePacketListenerImpl
-
handleContainerClick
- Specified by:
handleContainerClick
in interfaceServerGamePacketListener
- Overrides:
handleContainerClick
in classServerGamePacketListenerImpl
-
handlePlaceRecipe
- Specified by:
handlePlaceRecipe
in interfaceServerGamePacketListener
- Overrides:
handlePlaceRecipe
in classServerGamePacketListenerImpl
-
handleContainerButtonClick
- Specified by:
handleContainerButtonClick
in interfaceServerGamePacketListener
- Overrides:
handleContainerButtonClick
in classServerGamePacketListenerImpl
-
handleSetCreativeModeSlot
- Specified by:
handleSetCreativeModeSlot
in interfaceServerGamePacketListener
- Overrides:
handleSetCreativeModeSlot
in classServerGamePacketListenerImpl
-
handleSignUpdate
- Specified by:
handleSignUpdate
in interfaceServerGamePacketListener
- Overrides:
handleSignUpdate
in classServerGamePacketListenerImpl
-
handleKeepAlive
- Specified by:
handleKeepAlive
in interfaceServerGamePacketListener
- Overrides:
handleKeepAlive
in classServerGamePacketListenerImpl
-
handlePlayerAbilities
- Specified by:
handlePlayerAbilities
in interfaceServerGamePacketListener
- Overrides:
handlePlayerAbilities
in classServerGamePacketListenerImpl
-
handleClientInformation
- Specified by:
handleClientInformation
in interfaceServerGamePacketListener
- Overrides:
handleClientInformation
in classServerGamePacketListenerImpl
-
handleCustomPayload
- Specified by:
handleCustomPayload
in interfaceServerGamePacketListener
- Overrides:
handleCustomPayload
in classServerGamePacketListenerImpl
-
handleChangeDifficulty
- Specified by:
handleChangeDifficulty
in interfaceServerGamePacketListener
- Overrides:
handleChangeDifficulty
in classServerGamePacketListenerImpl
-
handleLockDifficulty
- Specified by:
handleLockDifficulty
in interfaceServerGamePacketListener
- Overrides:
handleLockDifficulty
in classServerGamePacketListenerImpl
-
dismount
public void dismount(double x, double y, double z, float yaw, float pitch) - Overrides:
dismount
in classServerGamePacketListenerImpl
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch, Set<ClientboundPlayerPositionPacket.RelativeArgument> relativeSet, boolean dismountVehicle) - Overrides:
teleport
in classServerGamePacketListenerImpl
-
ackBlockChangesUpTo
public void ackBlockChangesUpTo(int sequence) - Overrides:
ackBlockChangesUpTo
in classServerGamePacketListenerImpl
-
handleChatCommand
- Specified by:
handleChatCommand
in interfaceServerGamePacketListener
- Overrides:
handleChatCommand
in classServerGamePacketListenerImpl
-
handleChatAck
- Specified by:
handleChatAck
in interfaceServerGamePacketListener
- Overrides:
handleChatAck
in classServerGamePacketListenerImpl
-
addPendingMessage
- Overrides:
addPendingMessage
in classServerGamePacketListenerImpl
-
sendPlayerChatMessage
- Overrides:
sendPlayerChatMessage
in classServerGamePacketListenerImpl
-
sendDisguisedChatMessage
- Overrides:
sendDisguisedChatMessage
in classServerGamePacketListenerImpl
-
handleChatSessionUpdate
- Specified by:
handleChatSessionUpdate
in interfaceServerGamePacketListener
- Overrides:
handleChatSessionUpdate
in classServerGamePacketListenerImpl
-