public class ServerPlayNetHandler extends java.lang.Object implements IServerPlayNetHandler
| 修飾子とタイプ | フィールドと説明 |
|---|---|
NetworkManager |
netManager |
ServerPlayerEntity |
player |
| コンストラクタと説明 |
|---|
ServerPlayNetHandler(MinecraftServer server,
NetworkManager networkManagerIn,
ServerPlayerEntity playerIn) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
captureCurrentPosition() |
void |
disconnect(ITextComponent textComponent)
Disconnect the player with a specified reason
|
void |
func_217261_a(CLockDifficultyPacket p_217261_1_) |
void |
func_217262_a(CUpdateJigsawBlockPacket p_217262_1_) |
void |
func_217263_a(CSetDifficultyPacket p_217263_1_) |
NetworkManager |
getNetworkManager()
Returns this the NetworkManager instance registered with this NetworkHandlerPlayClient
|
void |
handleAnimation(CAnimateHandPacket packetIn) |
void |
handleRecipeBookUpdate(CRecipeInfoPacket packetIn) |
void |
handleResourcePackStatus(CResourcePackStatusPacket packetIn) |
void |
handleSeenAdvancements(CSeenAdvancementsPacket packetIn) |
void |
handleSpectate(CSpectatePacket packetIn) |
void |
onDisconnect(ITextComponent reason)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
processChatMessage(CChatMessagePacket packetIn)
Process chat messages (broadcast back to clients) and commands (executes)
|
void |
processClickWindow(CClickWindowPacket packetIn)
Executes a container/inventory slot manipulation as indicated by the packet.
|
void |
processClientSettings(CClientSettingsPacket packetIn)
Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
and whether to show the cape
|
void |
processClientStatus(CClientStatusPacket packetIn)
Processes the client status updates: respawn attempt from player, opening statistics or achievements, or acquiring
'open inventory' achievement
|
void |
processCloseWindow(CCloseWindowPacket packetIn)
Processes the client closing windows (container)
|
void |
processConfirmTeleport(CConfirmTeleportPacket packetIn) |
void |
processConfirmTransaction(CConfirmTransactionPacket packetIn)
Received in response to the server requesting to confirm that the client-side open container matches the servers'
after a mismatched container-slot manipulation.
|
void |
processCreativeInventoryAction(CCreativeInventoryActionPacket packetIn)
Update the server with an ItemStack in a slot.
|
void |
processCustomPayload(CCustomPayloadPacket packetIn)
Synchronizes serverside and clientside book contents and signing
|
void |
processEditBook(CEditBookPacket packetIn) |
void |
processEnchantItem(CEnchantItemPacket packetIn)
Enchants the item identified by the packet given some convoluted conditions (matching window, which
should/shouldn't be in use?)
|
void |
processEntityAction(CEntityActionPacket packetIn)
Processes a range of action-types: sneaking, sprinting, waking from sleep, opening the inventory or setting jump
height of the horse the player is riding
|
void |
processHeldItemChange(CHeldItemChangePacket packetIn)
Updates which quickbar slot is selected
|
void |
processInput(CInputPacket packetIn)
Processes player movement input.
|
void |
processKeepAlive(CKeepAlivePacket packetIn)
Updates a players' ping statistics
|
void |
processNBTQueryBlockEntity(CQueryTileEntityNBTPacket packetIn) |
void |
processNBTQueryEntity(CQueryEntityNBTPacket packetIn) |
void |
processPickItem(CPickItemPacket packetIn) |
void |
processPlaceRecipe(CPlaceRecipePacket packetIn) |
void |
processPlayer(CPlayerPacket packetIn)
Processes clients perspective on player positioning and/or orientation
|
void |
processPlayerAbilities(CPlayerAbilitiesPacket packetIn)
Processes a player starting/stopping flying
|
void |
processPlayerDigging(CPlayerDiggingPacket packetIn)
Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items
|
void |
processRenameItem(CRenameItemPacket packetIn) |
void |
processSelectTrade(CSelectTradePacket packetIn) |
void |
processSteerBoat(CSteerBoatPacket packetIn) |
void |
processTabComplete(CTabCompletePacket packetIn)
This method is only called for manual tab-completion (the
minecraft:ask_server suggestion provider). |
void |
processTryUseItem(CPlayerTryUseItemPacket packetIn)
Called when a client is using an item while not pointing at a block, but simply using an item
|
void |
processTryUseItemOnBlock(CPlayerTryUseItemOnBlockPacket packetIn) |
void |
processUpdateBeacon(CUpdateBeaconPacket packetIn) |
void |
processUpdateCommandBlock(CUpdateCommandBlockPacket packetIn) |
void |
processUpdateCommandMinecart(CUpdateMinecartCommandBlockPacket packetIn) |
void |
processUpdateSign(CUpdateSignPacket packetIn) |
void |
processUpdateStructureBlock(CUpdateStructureBlockPacket packetIn) |
void |
processUseEntity(CUseEntityPacket packetIn)
Processes left and right clicks on entities
|
void |
processVehicleMove(CMoveVehiclePacket packetIn) |
void |
sendPacket(IPacket<?> packetIn) |
void |
sendPacket(IPacket<?> packetIn,
io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> futureListeners) |
void |
setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch) |
void |
setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch,
java.util.Set<SPlayerPositionLookPacket.Flags> relativeSet)
Teleports the player position to the (relative) values specified, and syncs to the client
|
void |
tick() |
public final NetworkManager netManager
public ServerPlayerEntity player
public ServerPlayNetHandler(MinecraftServer server, NetworkManager networkManagerIn, ServerPlayerEntity playerIn)
public void tick()
public void captureCurrentPosition()
public NetworkManager getNetworkManager()
getNetworkManager インタフェース内 INetHandlerpublic void disconnect(ITextComponent textComponent)
public void processInput(CInputPacket packetIn)
processInput インタフェース内 IServerPlayNetHandlerpublic void processVehicleMove(CMoveVehiclePacket packetIn)
processVehicleMove インタフェース内 IServerPlayNetHandlerpublic void processConfirmTeleport(CConfirmTeleportPacket packetIn)
processConfirmTeleport インタフェース内 IServerPlayNetHandlerpublic void handleRecipeBookUpdate(CRecipeInfoPacket packetIn)
handleRecipeBookUpdate インタフェース内 IServerPlayNetHandlerpublic void handleSeenAdvancements(CSeenAdvancementsPacket packetIn)
handleSeenAdvancements インタフェース内 IServerPlayNetHandlerpublic void processTabComplete(CTabCompletePacket packetIn)
minecraft:ask_server suggestion provider).processTabComplete インタフェース内 IServerPlayNetHandlerpublic void processUpdateCommandBlock(CUpdateCommandBlockPacket packetIn)
processUpdateCommandBlock インタフェース内 IServerPlayNetHandlerpublic void processUpdateCommandMinecart(CUpdateMinecartCommandBlockPacket packetIn)
processUpdateCommandMinecart インタフェース内 IServerPlayNetHandlerpublic void processPickItem(CPickItemPacket packetIn)
processPickItem インタフェース内 IServerPlayNetHandlerpublic void processRenameItem(CRenameItemPacket packetIn)
processRenameItem インタフェース内 IServerPlayNetHandlerpublic void processUpdateBeacon(CUpdateBeaconPacket packetIn)
processUpdateBeacon インタフェース内 IServerPlayNetHandlerpublic void processUpdateStructureBlock(CUpdateStructureBlockPacket packetIn)
processUpdateStructureBlock インタフェース内 IServerPlayNetHandlerpublic void func_217262_a(CUpdateJigsawBlockPacket p_217262_1_)
func_217262_a インタフェース内 IServerPlayNetHandlerpublic void processSelectTrade(CSelectTradePacket packetIn)
processSelectTrade インタフェース内 IServerPlayNetHandlerpublic void processEditBook(CEditBookPacket packetIn)
processEditBook インタフェース内 IServerPlayNetHandlerpublic void processNBTQueryEntity(CQueryEntityNBTPacket packetIn)
processNBTQueryEntity インタフェース内 IServerPlayNetHandlerpublic void processNBTQueryBlockEntity(CQueryTileEntityNBTPacket packetIn)
processNBTQueryBlockEntity インタフェース内 IServerPlayNetHandlerpublic void processPlayer(CPlayerPacket packetIn)
processPlayer インタフェース内 IServerPlayNetHandlerpublic void setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch)
public void setPlayerLocation(double x,
double y,
double z,
float yaw,
float pitch,
java.util.Set<SPlayerPositionLookPacket.Flags> relativeSet)
public void processPlayerDigging(CPlayerDiggingPacket packetIn)
processPlayerDigging インタフェース内 IServerPlayNetHandlerpublic void processTryUseItemOnBlock(CPlayerTryUseItemOnBlockPacket packetIn)
processTryUseItemOnBlock インタフェース内 IServerPlayNetHandlerpublic void processTryUseItem(CPlayerTryUseItemPacket packetIn)
processTryUseItem インタフェース内 IServerPlayNetHandlerpublic void handleSpectate(CSpectatePacket packetIn)
handleSpectate インタフェース内 IServerPlayNetHandlerpublic void handleResourcePackStatus(CResourcePackStatusPacket packetIn)
handleResourcePackStatus インタフェース内 IServerPlayNetHandlerpublic void processSteerBoat(CSteerBoatPacket packetIn)
processSteerBoat インタフェース内 IServerPlayNetHandlerpublic void onDisconnect(ITextComponent reason)
onDisconnect インタフェース内 INetHandlerpublic void sendPacket(IPacket<?> packetIn)
public void sendPacket(IPacket<?> packetIn, @Nullable io.netty.util.concurrent.GenericFutureListener<? extends io.netty.util.concurrent.Future<? super java.lang.Void>> futureListeners)
public void processHeldItemChange(CHeldItemChangePacket packetIn)
processHeldItemChange インタフェース内 IServerPlayNetHandlerpublic void processChatMessage(CChatMessagePacket packetIn)
processChatMessage インタフェース内 IServerPlayNetHandlerpublic void handleAnimation(CAnimateHandPacket packetIn)
handleAnimation インタフェース内 IServerPlayNetHandlerpublic void processEntityAction(CEntityActionPacket packetIn)
processEntityAction インタフェース内 IServerPlayNetHandlerpublic void processUseEntity(CUseEntityPacket packetIn)
processUseEntity インタフェース内 IServerPlayNetHandlerpublic void processClientStatus(CClientStatusPacket packetIn)
processClientStatus インタフェース内 IServerPlayNetHandlerpublic void processCloseWindow(CCloseWindowPacket packetIn)
processCloseWindow インタフェース内 IServerPlayNetHandlerpublic void processClickWindow(CClickWindowPacket packetIn)
processClickWindow インタフェース内 IServerPlayNetHandlerpublic void processPlaceRecipe(CPlaceRecipePacket packetIn)
processPlaceRecipe インタフェース内 IServerPlayNetHandlerpublic void processEnchantItem(CEnchantItemPacket packetIn)
processEnchantItem インタフェース内 IServerPlayNetHandlerpublic void processCreativeInventoryAction(CCreativeInventoryActionPacket packetIn)
processCreativeInventoryAction インタフェース内 IServerPlayNetHandlerpublic void processConfirmTransaction(CConfirmTransactionPacket packetIn)
processConfirmTransaction インタフェース内 IServerPlayNetHandlerpublic void processUpdateSign(CUpdateSignPacket packetIn)
processUpdateSign インタフェース内 IServerPlayNetHandlerpublic void processKeepAlive(CKeepAlivePacket packetIn)
processKeepAlive インタフェース内 IServerPlayNetHandlerpublic void processPlayerAbilities(CPlayerAbilitiesPacket packetIn)
processPlayerAbilities インタフェース内 IServerPlayNetHandlerpublic void processClientSettings(CClientSettingsPacket packetIn)
processClientSettings インタフェース内 IServerPlayNetHandlerpublic void processCustomPayload(CCustomPayloadPacket packetIn)
processCustomPayload インタフェース内 IServerPlayNetHandlerpublic void func_217263_a(CSetDifficultyPacket p_217263_1_)
func_217263_a インタフェース内 IServerPlayNetHandlerpublic void func_217261_a(CLockDifficultyPacket p_217261_1_)
func_217261_a インタフェース内 IServerPlayNetHandler