public class NetHandlerPlayServer extends java.lang.Object implements INetHandlerPlayServer
Modifier and Type | Field and Description |
---|---|
NetworkManager |
netManager |
EntityPlayerMP |
playerEntity |
Constructor and Description |
---|
NetHandlerPlayServer(MinecraftServer par1MinecraftServer,
NetworkManager par2INetworkManager,
EntityPlayerMP par3EntityPlayerMP) |
Modifier and Type | Method and Description |
---|---|
NetworkManager |
func_147362_b() |
void |
kickPlayerFromServer(java.lang.String p_147360_1_)
Kick a player from the server with a reason
|
void |
onConnectionStateTransition(EnumConnectionState p_147232_1_,
EnumConnectionState p_147232_2_)
Allows validation of the connection state transition.
|
void |
onDisconnect(IChatComponent p_147231_1_)
Invoked when disconnecting, the parameter is a ChatComponent describing the reason for termination
|
void |
onNetworkTick()
For scheduled network tasks.
|
void |
processAnimation(C0APacketAnimation p_147350_1_)
Processes the player swinging its held item
|
void |
processChatMessage(C01PacketChatMessage p_147354_1_)
Process chat messages (broadcast back to clients) and commands (executes)
|
void |
processClickWindow(C0EPacketClickWindow p_147351_1_)
Executes a container/inventory slot manipulation as indicated by the packet.
|
void |
processClientSettings(C15PacketClientSettings p_147352_1_)
Updates serverside copy of client settings: language, render distance, chat visibility, chat colours, difficulty,
and whether to show the cape
|
void |
processClientStatus(C16PacketClientStatus p_147342_1_)
Processes the client status updates: respawn attempt from player, opening statistics or achievements, or
acquiring 'open inventory' achievement
|
void |
processCloseWindow(C0DPacketCloseWindow p_147356_1_)
Processes the client closing windows (container)
|
void |
processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_)
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(C10PacketCreativeInventoryAction p_147344_1_)
Update the server with an ItemStack in a slot.
|
void |
processEnchantItem(C11PacketEnchantItem p_147338_1_)
Enchants the item identified by the packet given some convoluted conditions (matching window, which
should/shouldn't be in use?)
|
void |
processEntityAction(C0BPacketEntityAction p_147357_1_)
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(C09PacketHeldItemChange p_147355_1_)
Updates which quickbar slot is selected
|
void |
processInput(C0CPacketInput p_147358_1_)
Processes player movement input.
|
void |
processKeepAlive(C00PacketKeepAlive p_147353_1_)
Updates a players' ping statistics
|
void |
processPlayer(C03PacketPlayer p_147347_1_)
Processes clients perspective on player positioning and/or orientation
|
void |
processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_)
Processes a player starting/stopping flying
|
void |
processPlayerBlockPlacement(C08PacketPlayerBlockPlacement p_147346_1_)
Processes block placement and block activation (anvil, furnace, etc.)
|
void |
processPlayerDigging(C07PacketPlayerDigging p_147345_1_)
Processes the player initiating/stopping digging on a particular spot, as well as a player dropping items?.
|
void |
processTabComplete(C14PacketTabComplete p_147341_1_)
Retrieves possible tab completions for the requested command string and sends them to the client
|
void |
processUpdateSign(C12PacketUpdateSign p_147343_1_) |
void |
processUseEntity(C02PacketUseEntity p_147340_1_)
Processes interactions ((un)leashing, opening command block GUI) and attacks on an entity with players currently
equipped item
|
void |
processVanilla250Packet(C17PacketCustomPayload p_147349_1_)
Synchronizes serverside and clientside book contents and signing
|
void |
sendPacket(Packet p_147359_1_) |
void |
setPlayerLocation(double p_147364_1_,
double p_147364_3_,
double p_147364_5_,
float p_147364_7_,
float p_147364_8_)
Moves the player to the specified destination and rotation
|
public final NetworkManager netManager
public EntityPlayerMP playerEntity
public NetHandlerPlayServer(MinecraftServer par1MinecraftServer, NetworkManager par2INetworkManager, EntityPlayerMP par3EntityPlayerMP)
public void onNetworkTick()
onNetworkTick
in interface INetHandler
public NetworkManager func_147362_b()
public void kickPlayerFromServer(java.lang.String p_147360_1_)
public void processInput(C0CPacketInput p_147358_1_)
processInput
in interface INetHandlerPlayServer
public void processPlayer(C03PacketPlayer p_147347_1_)
processPlayer
in interface INetHandlerPlayServer
public void setPlayerLocation(double p_147364_1_, double p_147364_3_, double p_147364_5_, float p_147364_7_, float p_147364_8_)
public void processPlayerDigging(C07PacketPlayerDigging p_147345_1_)
processPlayerDigging
in interface INetHandlerPlayServer
public void processPlayerBlockPlacement(C08PacketPlayerBlockPlacement p_147346_1_)
processPlayerBlockPlacement
in interface INetHandlerPlayServer
public void onDisconnect(IChatComponent p_147231_1_)
onDisconnect
in interface INetHandler
public void sendPacket(Packet p_147359_1_)
public void processHeldItemChange(C09PacketHeldItemChange p_147355_1_)
processHeldItemChange
in interface INetHandlerPlayServer
public void processChatMessage(C01PacketChatMessage p_147354_1_)
processChatMessage
in interface INetHandlerPlayServer
public void processAnimation(C0APacketAnimation p_147350_1_)
processAnimation
in interface INetHandlerPlayServer
public void processEntityAction(C0BPacketEntityAction p_147357_1_)
processEntityAction
in interface INetHandlerPlayServer
public void processUseEntity(C02PacketUseEntity p_147340_1_)
processUseEntity
in interface INetHandlerPlayServer
public void processClientStatus(C16PacketClientStatus p_147342_1_)
processClientStatus
in interface INetHandlerPlayServer
public void processCloseWindow(C0DPacketCloseWindow p_147356_1_)
processCloseWindow
in interface INetHandlerPlayServer
public void processClickWindow(C0EPacketClickWindow p_147351_1_)
processClickWindow
in interface INetHandlerPlayServer
public void processEnchantItem(C11PacketEnchantItem p_147338_1_)
processEnchantItem
in interface INetHandlerPlayServer
public void processCreativeInventoryAction(C10PacketCreativeInventoryAction p_147344_1_)
processCreativeInventoryAction
in interface INetHandlerPlayServer
public void processConfirmTransaction(C0FPacketConfirmTransaction p_147339_1_)
processConfirmTransaction
in interface INetHandlerPlayServer
public void processUpdateSign(C12PacketUpdateSign p_147343_1_)
processUpdateSign
in interface INetHandlerPlayServer
public void processKeepAlive(C00PacketKeepAlive p_147353_1_)
processKeepAlive
in interface INetHandlerPlayServer
public void processPlayerAbilities(C13PacketPlayerAbilities p_147348_1_)
processPlayerAbilities
in interface INetHandlerPlayServer
public void processTabComplete(C14PacketTabComplete p_147341_1_)
processTabComplete
in interface INetHandlerPlayServer
public void processClientSettings(C15PacketClientSettings p_147352_1_)
processClientSettings
in interface INetHandlerPlayServer
public void processVanilla250Packet(C17PacketCustomPayload p_147349_1_)
processVanilla250Packet
in interface INetHandlerPlayServer
public void onConnectionStateTransition(EnumConnectionState p_147232_1_, EnumConnectionState p_147232_2_)
onConnectionStateTransition
in interface INetHandler