Package net.minecraftforge.common.util
Class FakePlayer.FakePlayerNetHandler
java.lang.Object
net.minecraft.network.play.ServerPlayNetHandler
net.minecraftforge.common.util.FakePlayer.FakePlayerNetHandler
- All Implemented Interfaces:
INetHandler
,IServerPlayNetHandler
- Enclosing class:
- FakePlayer
@ParametersAreNonnullByDefault
private static class FakePlayer.FakePlayerNetHandler
extends ServerPlayNetHandler
-
Field Summary
Fields inherited from class net.minecraft.network.play.ServerPlayNetHandler
connection, player
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disconnect
(ITextComponent message) void
void
handleAnimate
(CAnimateHandPacket packet) void
void
void
handleChat
(CChatMessagePacket packet) void
void
void
void
void
void
void
void
void
handleEditBook
(CEditBookPacket packet) void
void
handleInteract
(CUseEntityPacket packet) void
void
handleKeepAlive
(CKeepAlivePacket packet) void
void
handleMovePlayer
(CPlayerPacket packet) void
handleMoveVehicle
(CMoveVehiclePacket packet) void
handlePaddleBoat
(CSteerBoatPacket packet) void
handlePickItem
(CPickItemPacket packet) void
handlePlaceRecipe
(CPlaceRecipePacket packet) void
void
void
void
handlePlayerInput
(CInputPacket packet) void
void
void
handleRenameItem
(CRenameItemPacket packet) void
void
void
handleSelectTrade
(CSelectTradePacket packet) void
void
void
void
void
void
void
void
handleSignUpdate
(CUpdateSignPacket packet) void
void
handleUseItem
(CPlayerTryUseItemPacket packet) void
void
onDisconnect
(ITextComponent message) void
void
void
send
(IPacket<?> packet, io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_211148_2_) 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<SPlayerPositionLookPacket.Flags> flags) void
tick()
Methods inherited from class net.minecraft.network.play.ServerPlayNetHandler
getConnection
-
Field Details
-
DUMMY_NETWORK_MANAGER
-
-
Constructor Details
-
FakePlayerNetHandler
-
-
Method Details
-
tick
public void tick()- Overrides:
tick
in classServerPlayNetHandler
-
resetPosition
public void resetPosition()- Overrides:
resetPosition
in classServerPlayNetHandler
-
disconnect
- Overrides:
disconnect
in classServerPlayNetHandler
-
handlePlayerInput
- Specified by:
handlePlayerInput
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerInput
in classServerPlayNetHandler
-
handleMoveVehicle
- Specified by:
handleMoveVehicle
in interfaceIServerPlayNetHandler
- Overrides:
handleMoveVehicle
in classServerPlayNetHandler
-
handleAcceptTeleportPacket
- Specified by:
handleAcceptTeleportPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleAcceptTeleportPacket
in classServerPlayNetHandler
-
handleRecipeBookSeenRecipePacket
- Specified by:
handleRecipeBookSeenRecipePacket
in interfaceIServerPlayNetHandler
- Overrides:
handleRecipeBookSeenRecipePacket
in classServerPlayNetHandler
-
handleRecipeBookChangeSettingsPacket
- Specified by:
handleRecipeBookChangeSettingsPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleRecipeBookChangeSettingsPacket
in classServerPlayNetHandler
-
handleSeenAdvancements
- Specified by:
handleSeenAdvancements
in interfaceIServerPlayNetHandler
- Overrides:
handleSeenAdvancements
in classServerPlayNetHandler
-
handleCustomCommandSuggestions
- Specified by:
handleCustomCommandSuggestions
in interfaceIServerPlayNetHandler
- Overrides:
handleCustomCommandSuggestions
in classServerPlayNetHandler
-
handleSetCommandBlock
- Specified by:
handleSetCommandBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCommandBlock
in classServerPlayNetHandler
-
handleSetCommandMinecart
- Specified by:
handleSetCommandMinecart
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCommandMinecart
in classServerPlayNetHandler
-
handlePickItem
- Specified by:
handlePickItem
in interfaceIServerPlayNetHandler
- Overrides:
handlePickItem
in classServerPlayNetHandler
-
handleRenameItem
- Specified by:
handleRenameItem
in interfaceIServerPlayNetHandler
- Overrides:
handleRenameItem
in classServerPlayNetHandler
-
handleSetBeaconPacket
- Specified by:
handleSetBeaconPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleSetBeaconPacket
in classServerPlayNetHandler
-
handleSetStructureBlock
- Specified by:
handleSetStructureBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetStructureBlock
in classServerPlayNetHandler
-
handleSetJigsawBlock
- Specified by:
handleSetJigsawBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetJigsawBlock
in classServerPlayNetHandler
-
handleJigsawGenerate
- Specified by:
handleJigsawGenerate
in interfaceIServerPlayNetHandler
- Overrides:
handleJigsawGenerate
in classServerPlayNetHandler
-
handleSelectTrade
- Specified by:
handleSelectTrade
in interfaceIServerPlayNetHandler
- Overrides:
handleSelectTrade
in classServerPlayNetHandler
-
handleEditBook
- Specified by:
handleEditBook
in interfaceIServerPlayNetHandler
- Overrides:
handleEditBook
in classServerPlayNetHandler
-
handleEntityTagQuery
- Specified by:
handleEntityTagQuery
in interfaceIServerPlayNetHandler
- Overrides:
handleEntityTagQuery
in classServerPlayNetHandler
-
handleBlockEntityTagQuery
- Specified by:
handleBlockEntityTagQuery
in interfaceIServerPlayNetHandler
- Overrides:
handleBlockEntityTagQuery
in classServerPlayNetHandler
-
handleMovePlayer
- Specified by:
handleMovePlayer
in interfaceIServerPlayNetHandler
- Overrides:
handleMovePlayer
in classServerPlayNetHandler
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch) - Overrides:
teleport
in classServerPlayNetHandler
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch, Set<SPlayerPositionLookPacket.Flags> flags) - Overrides:
teleport
in classServerPlayNetHandler
-
handlePlayerAction
- Specified by:
handlePlayerAction
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerAction
in classServerPlayNetHandler
-
handleUseItemOn
- Specified by:
handleUseItemOn
in interfaceIServerPlayNetHandler
- Overrides:
handleUseItemOn
in classServerPlayNetHandler
-
handleUseItem
- Specified by:
handleUseItem
in interfaceIServerPlayNetHandler
- Overrides:
handleUseItem
in classServerPlayNetHandler
-
handleTeleportToEntityPacket
- Specified by:
handleTeleportToEntityPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleTeleportToEntityPacket
in classServerPlayNetHandler
-
handleResourcePackResponse
- Specified by:
handleResourcePackResponse
in interfaceIServerPlayNetHandler
- Overrides:
handleResourcePackResponse
in classServerPlayNetHandler
-
handlePaddleBoat
- Specified by:
handlePaddleBoat
in interfaceIServerPlayNetHandler
- Overrides:
handlePaddleBoat
in classServerPlayNetHandler
-
onDisconnect
- Specified by:
onDisconnect
in interfaceINetHandler
- Overrides:
onDisconnect
in classServerPlayNetHandler
-
send
- Overrides:
send
in classServerPlayNetHandler
-
send
public void send(IPacket<?> packet, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super Void>> p_211148_2_) - Overrides:
send
in classServerPlayNetHandler
-
handleSetCarriedItem
- Specified by:
handleSetCarriedItem
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCarriedItem
in classServerPlayNetHandler
-
handleChat
- Specified by:
handleChat
in interfaceIServerPlayNetHandler
- Overrides:
handleChat
in classServerPlayNetHandler
-
handleAnimate
- Specified by:
handleAnimate
in interfaceIServerPlayNetHandler
- Overrides:
handleAnimate
in classServerPlayNetHandler
-
handlePlayerCommand
- Specified by:
handlePlayerCommand
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerCommand
in classServerPlayNetHandler
-
handleInteract
- Specified by:
handleInteract
in interfaceIServerPlayNetHandler
- Overrides:
handleInteract
in classServerPlayNetHandler
-
handleClientCommand
- Specified by:
handleClientCommand
in interfaceIServerPlayNetHandler
- Overrides:
handleClientCommand
in classServerPlayNetHandler
-
handleContainerClose
- Specified by:
handleContainerClose
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerClose
in classServerPlayNetHandler
-
handleContainerClick
- Specified by:
handleContainerClick
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerClick
in classServerPlayNetHandler
-
handlePlaceRecipe
- Specified by:
handlePlaceRecipe
in interfaceIServerPlayNetHandler
- Overrides:
handlePlaceRecipe
in classServerPlayNetHandler
-
handleContainerButtonClick
- Specified by:
handleContainerButtonClick
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerButtonClick
in classServerPlayNetHandler
-
handleSetCreativeModeSlot
- Specified by:
handleSetCreativeModeSlot
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCreativeModeSlot
in classServerPlayNetHandler
-
handleContainerAck
- Specified by:
handleContainerAck
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerAck
in classServerPlayNetHandler
-
handleSignUpdate
- Specified by:
handleSignUpdate
in interfaceIServerPlayNetHandler
- Overrides:
handleSignUpdate
in classServerPlayNetHandler
-
handleKeepAlive
- Specified by:
handleKeepAlive
in interfaceIServerPlayNetHandler
- Overrides:
handleKeepAlive
in classServerPlayNetHandler
-
handlePlayerAbilities
- Specified by:
handlePlayerAbilities
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerAbilities
in classServerPlayNetHandler
-
handleClientInformation
- Specified by:
handleClientInformation
in interfaceIServerPlayNetHandler
- Overrides:
handleClientInformation
in classServerPlayNetHandler
-
handleCustomPayload
- Specified by:
handleCustomPayload
in interfaceIServerPlayNetHandler
- Overrides:
handleCustomPayload
in classServerPlayNetHandler
-
handleChangeDifficulty
- Specified by:
handleChangeDifficulty
in interfaceIServerPlayNetHandler
- Overrides:
handleChangeDifficulty
in classServerPlayNetHandler
-
handleLockDifficulty
- Specified by:
handleLockDifficulty
in interfaceIServerPlayNetHandler
- Overrides:
handleLockDifficulty
in classServerPlayNetHandler
-