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 Modifier and Type Field Description private static NetworkManager
DUMMY_NETWORK_MANAGER
-
Fields inherited from class net.minecraft.network.play.ServerPlayNetHandler
connection, player
-
-
Constructor Summary
Constructors Constructor Description FakePlayerNetHandler(MinecraftServer server, ServerPlayerEntity player)
-
Method Summary
-
Methods inherited from class net.minecraft.network.play.ServerPlayNetHandler
getConnection
-
-
-
-
Field Detail
-
DUMMY_NETWORK_MANAGER
private static final NetworkManager DUMMY_NETWORK_MANAGER
-
-
Constructor Detail
-
FakePlayerNetHandler
public FakePlayerNetHandler(MinecraftServer server, ServerPlayerEntity player)
-
-
Method Detail
-
tick
public void tick()
- Overrides:
tick
in classServerPlayNetHandler
-
resetPosition
public void resetPosition()
- Overrides:
resetPosition
in classServerPlayNetHandler
-
disconnect
public void disconnect(ITextComponent message)
- Overrides:
disconnect
in classServerPlayNetHandler
-
handlePlayerInput
public void handlePlayerInput(CInputPacket packet)
- Specified by:
handlePlayerInput
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerInput
in classServerPlayNetHandler
-
handleMoveVehicle
public void handleMoveVehicle(CMoveVehiclePacket packet)
- Specified by:
handleMoveVehicle
in interfaceIServerPlayNetHandler
- Overrides:
handleMoveVehicle
in classServerPlayNetHandler
-
handleAcceptTeleportPacket
public void handleAcceptTeleportPacket(CConfirmTeleportPacket packet)
- Specified by:
handleAcceptTeleportPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleAcceptTeleportPacket
in classServerPlayNetHandler
-
handleRecipeBookSeenRecipePacket
public void handleRecipeBookSeenRecipePacket(CMarkRecipeSeenPacket packet)
- Specified by:
handleRecipeBookSeenRecipePacket
in interfaceIServerPlayNetHandler
- Overrides:
handleRecipeBookSeenRecipePacket
in classServerPlayNetHandler
-
handleRecipeBookChangeSettingsPacket
public void handleRecipeBookChangeSettingsPacket(CUpdateRecipeBookStatusPacket packet)
- Specified by:
handleRecipeBookChangeSettingsPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleRecipeBookChangeSettingsPacket
in classServerPlayNetHandler
-
handleSeenAdvancements
public void handleSeenAdvancements(CSeenAdvancementsPacket packet)
- Specified by:
handleSeenAdvancements
in interfaceIServerPlayNetHandler
- Overrides:
handleSeenAdvancements
in classServerPlayNetHandler
-
handleCustomCommandSuggestions
public void handleCustomCommandSuggestions(CTabCompletePacket packet)
- Specified by:
handleCustomCommandSuggestions
in interfaceIServerPlayNetHandler
- Overrides:
handleCustomCommandSuggestions
in classServerPlayNetHandler
-
handleSetCommandBlock
public void handleSetCommandBlock(CUpdateCommandBlockPacket packet)
- Specified by:
handleSetCommandBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCommandBlock
in classServerPlayNetHandler
-
handleSetCommandMinecart
public void handleSetCommandMinecart(CUpdateMinecartCommandBlockPacket packet)
- Specified by:
handleSetCommandMinecart
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCommandMinecart
in classServerPlayNetHandler
-
handlePickItem
public void handlePickItem(CPickItemPacket packet)
- Specified by:
handlePickItem
in interfaceIServerPlayNetHandler
- Overrides:
handlePickItem
in classServerPlayNetHandler
-
handleRenameItem
public void handleRenameItem(CRenameItemPacket packet)
- Specified by:
handleRenameItem
in interfaceIServerPlayNetHandler
- Overrides:
handleRenameItem
in classServerPlayNetHandler
-
handleSetBeaconPacket
public void handleSetBeaconPacket(CUpdateBeaconPacket packet)
- Specified by:
handleSetBeaconPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleSetBeaconPacket
in classServerPlayNetHandler
-
handleSetStructureBlock
public void handleSetStructureBlock(CUpdateStructureBlockPacket packet)
- Specified by:
handleSetStructureBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetStructureBlock
in classServerPlayNetHandler
-
handleSetJigsawBlock
public void handleSetJigsawBlock(CUpdateJigsawBlockPacket packet)
- Specified by:
handleSetJigsawBlock
in interfaceIServerPlayNetHandler
- Overrides:
handleSetJigsawBlock
in classServerPlayNetHandler
-
handleJigsawGenerate
public void handleJigsawGenerate(CJigsawBlockGeneratePacket packet)
- Specified by:
handleJigsawGenerate
in interfaceIServerPlayNetHandler
- Overrides:
handleJigsawGenerate
in classServerPlayNetHandler
-
handleSelectTrade
public void handleSelectTrade(CSelectTradePacket packet)
- Specified by:
handleSelectTrade
in interfaceIServerPlayNetHandler
- Overrides:
handleSelectTrade
in classServerPlayNetHandler
-
handleEditBook
public void handleEditBook(CEditBookPacket packet)
- Specified by:
handleEditBook
in interfaceIServerPlayNetHandler
- Overrides:
handleEditBook
in classServerPlayNetHandler
-
handleEntityTagQuery
public void handleEntityTagQuery(CQueryEntityNBTPacket packet)
- Specified by:
handleEntityTagQuery
in interfaceIServerPlayNetHandler
- Overrides:
handleEntityTagQuery
in classServerPlayNetHandler
-
handleBlockEntityTagQuery
public void handleBlockEntityTagQuery(CQueryTileEntityNBTPacket packet)
- Specified by:
handleBlockEntityTagQuery
in interfaceIServerPlayNetHandler
- Overrides:
handleBlockEntityTagQuery
in classServerPlayNetHandler
-
handleMovePlayer
public void handleMovePlayer(CPlayerPacket packet)
- 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, java.util.Set<SPlayerPositionLookPacket.Flags> flags)
- Overrides:
teleport
in classServerPlayNetHandler
-
handlePlayerAction
public void handlePlayerAction(CPlayerDiggingPacket packet)
- Specified by:
handlePlayerAction
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerAction
in classServerPlayNetHandler
-
handleUseItemOn
public void handleUseItemOn(CPlayerTryUseItemOnBlockPacket packet)
- Specified by:
handleUseItemOn
in interfaceIServerPlayNetHandler
- Overrides:
handleUseItemOn
in classServerPlayNetHandler
-
handleUseItem
public void handleUseItem(CPlayerTryUseItemPacket packet)
- Specified by:
handleUseItem
in interfaceIServerPlayNetHandler
- Overrides:
handleUseItem
in classServerPlayNetHandler
-
handleTeleportToEntityPacket
public void handleTeleportToEntityPacket(CSpectatePacket packet)
- Specified by:
handleTeleportToEntityPacket
in interfaceIServerPlayNetHandler
- Overrides:
handleTeleportToEntityPacket
in classServerPlayNetHandler
-
handleResourcePackResponse
public void handleResourcePackResponse(CResourcePackStatusPacket packet)
- Specified by:
handleResourcePackResponse
in interfaceIServerPlayNetHandler
- Overrides:
handleResourcePackResponse
in classServerPlayNetHandler
-
handlePaddleBoat
public void handlePaddleBoat(CSteerBoatPacket packet)
- Specified by:
handlePaddleBoat
in interfaceIServerPlayNetHandler
- Overrides:
handlePaddleBoat
in classServerPlayNetHandler
-
onDisconnect
public void onDisconnect(ITextComponent message)
- Specified by:
onDisconnect
in interfaceINetHandler
- Overrides:
onDisconnect
in classServerPlayNetHandler
-
send
public void send(IPacket<?> packet)
- Overrides:
send
in classServerPlayNetHandler
-
send
public void send(IPacket<?> packet, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> p_211148_2_)
- Overrides:
send
in classServerPlayNetHandler
-
handleSetCarriedItem
public void handleSetCarriedItem(CHeldItemChangePacket packet)
- Specified by:
handleSetCarriedItem
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCarriedItem
in classServerPlayNetHandler
-
handleChat
public void handleChat(CChatMessagePacket packet)
- Specified by:
handleChat
in interfaceIServerPlayNetHandler
- Overrides:
handleChat
in classServerPlayNetHandler
-
handleAnimate
public void handleAnimate(CAnimateHandPacket packet)
- Specified by:
handleAnimate
in interfaceIServerPlayNetHandler
- Overrides:
handleAnimate
in classServerPlayNetHandler
-
handlePlayerCommand
public void handlePlayerCommand(CEntityActionPacket packet)
- Specified by:
handlePlayerCommand
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerCommand
in classServerPlayNetHandler
-
handleInteract
public void handleInteract(CUseEntityPacket packet)
- Specified by:
handleInteract
in interfaceIServerPlayNetHandler
- Overrides:
handleInteract
in classServerPlayNetHandler
-
handleClientCommand
public void handleClientCommand(CClientStatusPacket packet)
- Specified by:
handleClientCommand
in interfaceIServerPlayNetHandler
- Overrides:
handleClientCommand
in classServerPlayNetHandler
-
handleContainerClose
public void handleContainerClose(CCloseWindowPacket packet)
- Specified by:
handleContainerClose
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerClose
in classServerPlayNetHandler
-
handleContainerClick
public void handleContainerClick(CClickWindowPacket packet)
- Specified by:
handleContainerClick
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerClick
in classServerPlayNetHandler
-
handlePlaceRecipe
public void handlePlaceRecipe(CPlaceRecipePacket packet)
- Specified by:
handlePlaceRecipe
in interfaceIServerPlayNetHandler
- Overrides:
handlePlaceRecipe
in classServerPlayNetHandler
-
handleContainerButtonClick
public void handleContainerButtonClick(CEnchantItemPacket packet)
- Specified by:
handleContainerButtonClick
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerButtonClick
in classServerPlayNetHandler
-
handleSetCreativeModeSlot
public void handleSetCreativeModeSlot(CCreativeInventoryActionPacket packet)
- Specified by:
handleSetCreativeModeSlot
in interfaceIServerPlayNetHandler
- Overrides:
handleSetCreativeModeSlot
in classServerPlayNetHandler
-
handleContainerAck
public void handleContainerAck(CConfirmTransactionPacket packet)
- Specified by:
handleContainerAck
in interfaceIServerPlayNetHandler
- Overrides:
handleContainerAck
in classServerPlayNetHandler
-
handleSignUpdate
public void handleSignUpdate(CUpdateSignPacket packet)
- Specified by:
handleSignUpdate
in interfaceIServerPlayNetHandler
- Overrides:
handleSignUpdate
in classServerPlayNetHandler
-
handleKeepAlive
public void handleKeepAlive(CKeepAlivePacket packet)
- Specified by:
handleKeepAlive
in interfaceIServerPlayNetHandler
- Overrides:
handleKeepAlive
in classServerPlayNetHandler
-
handlePlayerAbilities
public void handlePlayerAbilities(CPlayerAbilitiesPacket packet)
- Specified by:
handlePlayerAbilities
in interfaceIServerPlayNetHandler
- Overrides:
handlePlayerAbilities
in classServerPlayNetHandler
-
handleClientInformation
public void handleClientInformation(CClientSettingsPacket packet)
- Specified by:
handleClientInformation
in interfaceIServerPlayNetHandler
- Overrides:
handleClientInformation
in classServerPlayNetHandler
-
handleCustomPayload
public void handleCustomPayload(CCustomPayloadPacket packet)
- Specified by:
handleCustomPayload
in interfaceIServerPlayNetHandler
- Overrides:
handleCustomPayload
in classServerPlayNetHandler
-
handleChangeDifficulty
public void handleChangeDifficulty(CSetDifficultyPacket packet)
- Specified by:
handleChangeDifficulty
in interfaceIServerPlayNetHandler
- Overrides:
handleChangeDifficulty
in classServerPlayNetHandler
-
handleLockDifficulty
public void handleLockDifficulty(CLockDifficultyPacket packet)
- Specified by:
handleLockDifficulty
in interfaceIServerPlayNetHandler
- Overrides:
handleLockDifficulty
in classServerPlayNetHandler
-
-