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
,ServerPlayerConnection
- Enclosing class:
- FakePlayer
@ParametersAreNonnullByDefault
private static class FakePlayer.FakePlayerNetHandler
extends ServerGamePacketListenerImpl
-
Field Summary
Fields inherited from class net.minecraft.server.network.ServerGamePacketListenerImpl
connection, player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disconnect(Component message)
void
void
handleAnimate(ServerboundSwingPacket packet)
void
void
void
handleChat(ServerboundChatPacket packet)
void
void
void
void
void
void
void
void
handleEditBook(ServerboundEditBookPacket packet)
void
void
handleInteract(ServerboundInteractPacket packet)
void
void
void
void
void
void
void
handlePickItem(ServerboundPickItemPacket packet)
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
handleUseItem(ServerboundUseItemPacket packet)
void
void
onDisconnect(Component message)
void
void
void
send(Packet<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)
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
tick()
Methods inherited from class net.minecraft.server.network.ServerGamePacketListenerImpl
dismount, getConnection, getPlayer, handlePong, teleport
-
Field Details
-
DUMMY_CONNECTION
-
-
Constructor Details
-
FakePlayerNetHandler
-
-
Method Details
-
tick
public void tick()- 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
public void send(Packet<?> packet, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> listener)- 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
-