类 FakePlayer.FakePlayerNetHandler
java.lang.Object
net.minecraft.server.network.ServerCommonPacketListenerImpl
net.minecraft.server.network.ServerGamePacketListenerImpl
net.neoforged.neoforge.common.util.FakePlayer.FakePlayerNetHandler
- 所有已实现的接口:
PacketListener
,ServerCommonPacketListener
,ServerCookiePacketListener
,GameProtocols.Context
,ServerGamePacketListener
,ServerPacketListener
,ServerPingPacketListener
,ServerboundPacketListener
,TickablePacketListener
,ServerPlayerConnection
,ICommonPacketListener
,IServerCommonPacketListenerExtension
,IServerGamePacketListenerExtension
- 封闭类:
FakePlayer
@ParametersAreNonnullByDefault
private static class FakePlayer.FakePlayerNetHandler
extends ServerGamePacketListenerImpl
-
字段概要
字段从类继承的字段 net.minecraft.server.network.ServerGamePacketListenerImpl
chunkSender, player
从类继承的字段 net.minecraft.server.network.ServerCommonPacketListenerImpl
connection, connectionType, LATENCY_CHECK_INTERVAL, server
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
ackBlockChangesUpTo
(int sequence) void
disconnect
(Component message) Triggers a disconnection with the given reason.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
handleKeepAlive
(ServerboundKeepAlivePacket p_294627_) 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
(DisconnectionDetails details) void
void
Sends a packet to the target of this listener.void
Sends a packet to the client of this listener.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
(PositionMoveRotation posMoveRot, Set<Relative> relatives) void
tick()
从类继承的方法 net.minecraft.server.network.ServerGamePacketListenerImpl
getPlayer, getRemoteAddress, handleAcceptPlayerLoad, handleBundleItemSelectedPacket, handleChangeGameMode, handleChunkBatchReceived, handleClientTickEnd, handleConfigurationAcknowledged, handleContainerSlotStateChanged, handleDebugSampleSubscription, handlePickItemFromBlock, handlePickItemFromEntity, handlePingRequest, handleSetTestBlock, handleSignedChatCommand, handleTestInstanceBlockAction, hasInfiniteMaterials, isAcceptingMessages, playerProfile, shouldHandleMessage, switchToConfig
从类继承的方法 net.minecraft.server.network.ServerCommonPacketListenerImpl
createCookie, createCookie, disconnect, getConnection, getConnectionType, getMainThreadEventLoop, getOwner, handleCookieResponse, handleCustomClickAction, handlePong, isSingleplayerOwner, keepConnectionAlive, latency, onPacketError, resumeFlushing, suspendFlushing
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.neoforged.neoforge.common.extensions.ICommonPacketListener
getConnection, getConnectionType, getMainThreadEventLoop, hasChannel, hasChannel, hasChannel
从接口继承的方法 net.neoforged.neoforge.common.extensions.IServerCommonPacketListenerExtension
send, send
从接口继承的方法 net.neoforged.neoforge.common.extensions.IServerGamePacketListenerExtension
sendBundled, sendBundled
从接口继承的方法 net.minecraft.network.PacketListener
createDisconnectionInfo, fillCrashReport, fillListenerSpecificCrashDetails
从接口继承的方法 net.minecraft.network.ServerboundPacketListener
flow
从接口继承的方法 net.minecraft.network.protocol.common.ServerCommonPacketListener
handleCustomClickAction, handlePong
从接口继承的方法 net.minecraft.network.protocol.cookie.ServerCookiePacketListener
handleCookieResponse
从接口继承的方法 net.minecraft.network.protocol.game.ServerGamePacketListener
protocol
从接口继承的方法 net.minecraft.network.protocol.game.ServerPacketListener
onPacketError
-
字段详细资料
-
DUMMY_CONNECTION
-
-
构造器详细资料
-
FakePlayerNetHandler
-
-
方法详细资料
-
tick
public void tick()- 指定者:
tick
在接口中TickablePacketListener
- 覆盖:
tick
在类中ServerGamePacketListenerImpl
-
resetPosition
public void resetPosition() -
disconnect
从接口复制的说明:ICommonPacketListener
Triggers a disconnection with the given reason.- 指定者:
disconnect
在接口中ICommonPacketListener
- 覆盖:
disconnect
在类中ServerCommonPacketListenerImpl
- 参数:
message
- The reason for the disconnection
-
handlePlayerInput
-
handleMoveVehicle
-
handleAcceptTeleportPacket
-
handleRecipeBookSeenRecipePacket
-
handleRecipeBookChangeSettingsPacket
-
handleSeenAdvancements
-
handleCustomCommandSuggestions
-
handleSetCommandBlock
-
handleSetCommandMinecart
-
handleRenameItem
- 指定者:
handleRenameItem
在接口中ServerGamePacketListener
- 覆盖:
handleRenameItem
在类中ServerGamePacketListenerImpl
-
handleSetBeaconPacket
-
handleSetStructureBlock
-
handleSetJigsawBlock
-
handleJigsawGenerate
-
handleSelectTrade
-
handleEditBook
- 指定者:
handleEditBook
在接口中ServerGamePacketListener
- 覆盖:
handleEditBook
在类中ServerGamePacketListenerImpl
-
handleEntityTagQuery
-
handleBlockEntityTagQuery
-
handleMovePlayer
- 指定者:
handleMovePlayer
在接口中ServerGamePacketListener
- 覆盖:
handleMovePlayer
在类中ServerGamePacketListenerImpl
-
teleport
public void teleport(double x, double y, double z, float yaw, float pitch) - 覆盖:
teleport
在类中ServerGamePacketListenerImpl
-
handlePlayerAction
-
handleUseItemOn
- 指定者:
handleUseItemOn
在接口中ServerGamePacketListener
- 覆盖:
handleUseItemOn
在类中ServerGamePacketListenerImpl
-
handleUseItem
- 指定者:
handleUseItem
在接口中ServerGamePacketListener
- 覆盖:
handleUseItem
在类中ServerGamePacketListenerImpl
-
handleTeleportToEntityPacket
-
handleResourcePackResponse
-
handlePaddleBoat
- 指定者:
handlePaddleBoat
在接口中ServerGamePacketListener
- 覆盖:
handlePaddleBoat
在类中ServerGamePacketListenerImpl
-
onDisconnect
- 指定者:
onDisconnect
在接口中PacketListener
- 覆盖:
onDisconnect
在类中ServerGamePacketListenerImpl
-
send
从接口复制的说明:ICommonPacketListener
Sends a packet to the target of this listener.- 指定者:
send
在接口中ICommonPacketListener
- 指定者:
send
在接口中ServerPlayerConnection
- 覆盖:
send
在类中ServerCommonPacketListenerImpl
-
send
public void send(Packet<?> packet, @Nullable @Nullable io.netty.channel.ChannelFutureListener sendListener) 从接口复制的说明:IServerCommonPacketListenerExtension
Sends a packet to the client of this listener.- 指定者:
send
在接口中IServerCommonPacketListenerExtension
- 覆盖:
send
在类中ServerCommonPacketListenerImpl
- 参数:
sendListener
- An optional callback for when the payload is sent
-
handleSetCarriedItem
-
handleChat
- 指定者:
handleChat
在接口中ServerGamePacketListener
- 覆盖:
handleChat
在类中ServerGamePacketListenerImpl
-
handleAnimate
- 指定者:
handleAnimate
在接口中ServerGamePacketListener
- 覆盖:
handleAnimate
在类中ServerGamePacketListenerImpl
-
handlePlayerCommand
-
handleInteract
- 指定者:
handleInteract
在接口中ServerGamePacketListener
- 覆盖:
handleInteract
在类中ServerGamePacketListenerImpl
-
handleClientCommand
-
handleContainerClose
-
handleContainerClick
-
handlePlaceRecipe
-
handleContainerButtonClick
-
handleSetCreativeModeSlot
-
handleSignUpdate
- 指定者:
handleSignUpdate
在接口中ServerGamePacketListener
- 覆盖:
handleSignUpdate
在类中ServerGamePacketListenerImpl
-
handleKeepAlive
-
handleCustomPayload
-
handleClientInformation
-
handlePlayerAbilities
-
handleChangeDifficulty
-
handleLockDifficulty
-
teleport
- 覆盖:
teleport
在类中ServerGamePacketListenerImpl
-
ackBlockChangesUpTo
public void ackBlockChangesUpTo(int sequence) -
handleChatCommand
-
handleChatAck
- 指定者:
handleChatAck
在接口中ServerGamePacketListener
- 覆盖:
handleChatAck
在类中ServerGamePacketListenerImpl
-
sendPlayerChatMessage
-
sendDisguisedChatMessage
-
handleChatSessionUpdate
-