YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.network.NetServerHandler Class Reference
Inheritance diagram for net.minecraft.network.NetServerHandler:
net.minecraft.network.packet.NetHandler

Public Member Functions

 NetServerHandler (MinecraftServer par1, INetworkManager par2, EntityPlayerMP par3)
 
void networkTick ()
 
void kickPlayerFromServer (String par1Str)
 
void handleFlying (Packet10Flying par1Packet10Flying)
 
void setPlayerLocation (double par1, double par3, double par5, float par7, float par8)
 
void handleBlockDig (Packet14BlockDig par1Packet14BlockDig)
 
void handlePlace (Packet15Place par1Packet15Place)
 
void handleErrorMessage (String par1Str, Object[] par2ArrayOfObj)
 
void unexpectedPacket (Packet par1Packet)
 
void sendPacketToPlayer (Packet par1Packet)
 
void handleBlockItemSwitch (Packet16BlockItemSwitch par1Packet16BlockItemSwitch)
 
void handleChat (Packet3Chat par1Packet3Chat)
 
void handleAnimation (Packet18Animation par1Packet18Animation)
 
void handleEntityAction (Packet19EntityAction par1Packet19EntityAction)
 
void handleKickDisconnect (Packet255KickDisconnect par1Packet255KickDisconnect)
 
int packetSize ()
 
void handleUseEntity (Packet7UseEntity par1Packet7UseEntity)
 
void handleClientCommand (Packet205ClientCommand par1Packet205ClientCommand)
 
boolean canProcessPacketsAsync ()
 
void handleRespawn (Packet9Respawn par1Packet9Respawn)
 
void handleCloseWindow (Packet101CloseWindow par1Packet101CloseWindow)
 
void handleWindowClick (Packet102WindowClick par1Packet102WindowClick)
 
void handleEnchantItem (Packet108EnchantItem par1Packet108EnchantItem)
 
void handleCreativeSetSlot (Packet107CreativeSetSlot par1Packet107CreativeSetSlot)
 
void handleTransaction (Packet106Transaction par1Packet106Transaction)
 
void handleUpdateSign (Packet130UpdateSign par1Packet130UpdateSign)
 
void handleKeepAlive (Packet0KeepAlive par1Packet0KeepAlive)
 
boolean isServerHandler ()
 
void handlePlayerAbilities (Packet202PlayerAbilities par1Packet202PlayerAbilities)
 
void handleAutoComplete (Packet203AutoComplete par1Packet203AutoComplete)
 
void handleClientInfo (Packet204ClientInfo par1Packet204ClientInfo)
 
void handleCustomPayload (Packet250CustomPayload par1Packet250CustomPayload)
 
void handleVanilla250Packet (Packet250CustomPayload par1Packet250CustomPayload)
 
void handleMapData (Packet131MapData par1Packet131MapData)
 
EntityPlayerMP getPlayer ()
 
- Public Member Functions inherited from net.minecraft.network.packet.NetHandler
void handleMapChunk (Packet51MapChunk par1Packet51MapChunk)
 
void unexpectedPacket (Packet par1Packet)
 
void handleErrorMessage (String par1Str, Object[] par2ArrayOfObj)
 
void handleKickDisconnect (Packet255KickDisconnect par1Packet255KickDisconnect)
 
void handleLogin (Packet1Login par1Packet1Login)
 
void handleFlying (Packet10Flying par1Packet10Flying)
 
void handleMultiBlockChange (Packet52MultiBlockChange par1Packet52MultiBlockChange)
 
void handleBlockDig (Packet14BlockDig par1Packet14BlockDig)
 
void handleBlockChange (Packet53BlockChange par1Packet53BlockChange)
 
void handleNamedEntitySpawn (Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn)
 
void handleEntity (Packet30Entity par1Packet30Entity)
 
void handleEntityTeleport (Packet34EntityTeleport par1Packet34EntityTeleport)
 
void handlePlace (Packet15Place par1Packet15Place)
 
void handleBlockItemSwitch (Packet16BlockItemSwitch par1Packet16BlockItemSwitch)
 
void handleDestroyEntity (Packet29DestroyEntity par1Packet29DestroyEntity)
 
void handleCollect (Packet22Collect par1Packet22Collect)
 
void handleChat (Packet3Chat par1Packet3Chat)
 
void handleVehicleSpawn (Packet23VehicleSpawn par1Packet23VehicleSpawn)
 
void handleAnimation (Packet18Animation par1Packet18Animation)
 
void handleEntityAction (Packet19EntityAction par1Packet19EntityAction)
 
void handleClientProtocol (Packet2ClientProtocol par1Packet2ClientProtocol)
 
void handleServerAuthData (Packet253ServerAuthData par1Packet253ServerAuthData)
 
void handleSharedKey (Packet252SharedKey par1Packet252SharedKey)
 
void handleMobSpawn (Packet24MobSpawn par1Packet24MobSpawn)
 
void handleUpdateTime (Packet4UpdateTime par1Packet4UpdateTime)
 
void handleSpawnPosition (Packet6SpawnPosition par1Packet6SpawnPosition)
 
void handleEntityVelocity (Packet28EntityVelocity par1Packet28EntityVelocity)
 
void handleEntityMetadata (Packet40EntityMetadata par1Packet40EntityMetadata)
 
void handleAttachEntity (Packet39AttachEntity par1Packet39AttachEntity)
 
void handleUseEntity (Packet7UseEntity par1Packet7UseEntity)
 
void handleEntityStatus (Packet38EntityStatus par1Packet38EntityStatus)
 
void handleUpdateHealth (Packet8UpdateHealth par1Packet8UpdateHealth)
 
void handleRespawn (Packet9Respawn par1Packet9Respawn)
 
void handleExplosion (Packet60Explosion par1Packet60Explosion)
 
void handleOpenWindow (Packet100OpenWindow par1Packet100OpenWindow)
 
void handleCloseWindow (Packet101CloseWindow par1Packet101CloseWindow)
 
void handleWindowClick (Packet102WindowClick par1Packet102WindowClick)
 
void handleSetSlot (Packet103SetSlot par1Packet103SetSlot)
 
void handleWindowItems (Packet104WindowItems par1Packet104WindowItems)
 
void handleUpdateSign (Packet130UpdateSign par1Packet130UpdateSign)
 
void handleUpdateProgressbar (Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
 
void handlePlayerInventory (Packet5PlayerInventory par1Packet5PlayerInventory)
 
void handleTransaction (Packet106Transaction par1Packet106Transaction)
 
void handleEntityPainting (Packet25EntityPainting par1Packet25EntityPainting)
 
void handleBlockEvent (Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
 
void handleStatistic (Packet200Statistic par1Packet200Statistic)
 
void handleSleep (Packet17Sleep par1Packet17Sleep)
 
void handleGameEvent (Packet70GameEvent par1Packet70GameEvent)
 
void handleWeather (Packet71Weather par1Packet71Weather)
 
void handleMapData (Packet131MapData par1Packet131MapData)
 
void handleDoorChange (Packet61DoorChange par1Packet61DoorChange)
 
void handleServerPing (Packet254ServerPing par1Packet254ServerPing)
 
void handleEntityEffect (Packet41EntityEffect par1Packet41EntityEffect)
 
void handleRemoveEntityEffect (Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
 
void handlePlayerInfo (Packet201PlayerInfo par1Packet201PlayerInfo)
 
void handleKeepAlive (Packet0KeepAlive par1Packet0KeepAlive)
 
void handleExperience (Packet43Experience par1Packet43Experience)
 
void handleCreativeSetSlot (Packet107CreativeSetSlot par1Packet107CreativeSetSlot)
 
void handleEntityExpOrb (Packet26EntityExpOrb par1Packet26EntityExpOrb)
 
void handleEnchantItem (Packet108EnchantItem par1Packet108EnchantItem)
 
void handleCustomPayload (Packet250CustomPayload par1Packet250CustomPayload)
 
void handleEntityHeadRotation (Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
 
void handleTileEntityData (Packet132TileEntityData par1Packet132TileEntityData)
 
void handlePlayerAbilities (Packet202PlayerAbilities par1Packet202PlayerAbilities)
 
void handleAutoComplete (Packet203AutoComplete par1Packet203AutoComplete)
 
void handleClientInfo (Packet204ClientInfo par1Packet204ClientInfo)
 
void handleLevelSound (Packet62LevelSound par1Packet62LevelSound)
 
void handleBlockDestroy (Packet55BlockDestroy par1Packet55BlockDestroy)
 
void handleClientCommand (Packet205ClientCommand par1Packet205ClientCommand)
 
void handleMapChunks (Packet56MapChunks par1Packet56MapChunks)
 
boolean canProcessPacketsAsync ()
 
void handleSetObjective (Packet206SetObjective par1Packet206SetObjective)
 
void handleSetScore (Packet207SetScore par1Packet207SetScore)
 
void handleSetDisplayObjective (Packet208SetDisplayObjective par1Packet208SetDisplayObjective)
 
void handleSetPlayerTeam (Packet209SetPlayerTeam par1Packet209SetPlayerTeam)
 
void handleWorldParticles (Packet63WorldParticles par1Packet63WorldParticles)
 

Public Attributes

final INetworkManager netManager
 
boolean connectionClosed = false
 
EntityPlayerMP playerEntity
 
int ticksForFloatKick
 

Constructor & Destructor Documentation

net.minecraft.network.NetServerHandler.NetServerHandler ( MinecraftServer  par1,
INetworkManager  par2,
EntityPlayerMP  par3 
)

Member Function Documentation

boolean net.minecraft.network.NetServerHandler.canProcessPacketsAsync ( )

If this returns false, all packets will be queued for the main thread to handle, even if they would otherwise be processed asynchronously. Used to avoid processing packets on the client before the world has been downloaded (which happens on the main thread)

EntityPlayerMP net.minecraft.network.NetServerHandler.getPlayer ( )
virtual
void net.minecraft.network.NetServerHandler.handleAnimation ( Packet18Animation  par1Packet18Animation)
void net.minecraft.network.NetServerHandler.handleAutoComplete ( Packet203AutoComplete  par1Packet203AutoComplete)
void net.minecraft.network.NetServerHandler.handleBlockDig ( Packet14BlockDig  par1Packet14BlockDig)
void net.minecraft.network.NetServerHandler.handleBlockItemSwitch ( Packet16BlockItemSwitch  par1Packet16BlockItemSwitch)
void net.minecraft.network.NetServerHandler.handleChat ( Packet3Chat  par1Packet3Chat)
void net.minecraft.network.NetServerHandler.handleClientCommand ( Packet205ClientCommand  par1Packet205ClientCommand)
void net.minecraft.network.NetServerHandler.handleClientInfo ( Packet204ClientInfo  par1Packet204ClientInfo)
void net.minecraft.network.NetServerHandler.handleCloseWindow ( Packet101CloseWindow  par1Packet101CloseWindow)
void net.minecraft.network.NetServerHandler.handleCreativeSetSlot ( Packet107CreativeSetSlot  par1Packet107CreativeSetSlot)

Handle a creative slot packet.

void net.minecraft.network.NetServerHandler.handleCustomPayload ( Packet250CustomPayload  par1Packet250CustomPayload)
void net.minecraft.network.NetServerHandler.handleEnchantItem ( Packet108EnchantItem  par1Packet108EnchantItem)
void net.minecraft.network.NetServerHandler.handleEntityAction ( Packet19EntityAction  par1Packet19EntityAction)

runs registerPacket on the given Packet19EntityAction

void net.minecraft.network.NetServerHandler.handleErrorMessage ( String  par1Str,
Object[]  par2ArrayOfObj 
)
void net.minecraft.network.NetServerHandler.handleFlying ( Packet10Flying  par1Packet10Flying)
void net.minecraft.network.NetServerHandler.handleKeepAlive ( Packet0KeepAlive  par1Packet0KeepAlive)

Handle a keep alive packet.

void net.minecraft.network.NetServerHandler.handleKickDisconnect ( Packet255KickDisconnect  par1Packet255KickDisconnect)
void net.minecraft.network.NetServerHandler.handleMapData ( Packet131MapData  par1Packet131MapData)

Contains logic for handling packets containing arbitrary unique item data. Currently this is only for maps.

void net.minecraft.network.NetServerHandler.handlePlace ( Packet15Place  par1Packet15Place)
void net.minecraft.network.NetServerHandler.handlePlayerAbilities ( Packet202PlayerAbilities  par1Packet202PlayerAbilities)

Handle a player abilities packet.

void net.minecraft.network.NetServerHandler.handleRespawn ( Packet9Respawn  par1Packet9Respawn)

respawns the player

void net.minecraft.network.NetServerHandler.handleTransaction ( Packet106Transaction  par1Packet106Transaction)
void net.minecraft.network.NetServerHandler.handleUpdateSign ( Packet130UpdateSign  par1Packet130UpdateSign)

Updates Client side signs

void net.minecraft.network.NetServerHandler.handleUseEntity ( Packet7UseEntity  par1Packet7UseEntity)
void net.minecraft.network.NetServerHandler.handleVanilla250Packet ( Packet250CustomPayload  par1Packet250CustomPayload)
virtual
void net.minecraft.network.NetServerHandler.handleWindowClick ( Packet102WindowClick  par1Packet102WindowClick)
boolean net.minecraft.network.NetServerHandler.isServerHandler ( )
virtual

determine if it is a server handler

Implements net.minecraft.network.packet.NetHandler.

void net.minecraft.network.NetServerHandler.kickPlayerFromServer ( String  par1Str)
void net.minecraft.network.NetServerHandler.networkTick ( )

run once each game tick

int net.minecraft.network.NetServerHandler.packetSize ( )

returns 0 for memoryMapped connections

void net.minecraft.network.NetServerHandler.sendPacketToPlayer ( Packet  par1Packet)

addToSendQueue. if it is a chat packet, check before sending it

void net.minecraft.network.NetServerHandler.setPlayerLocation ( double  par1,
double  par3,
double  par5,
float  par7,
float  par8 
)

Moves the player to the specified destination and rotation

void net.minecraft.network.NetServerHandler.unexpectedPacket ( Packet  par1Packet)

Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing.

Member Data Documentation

boolean net.minecraft.network.NetServerHandler.connectionClosed = false

This is set to true whenever a player disconnects from the server.

final INetworkManager net.minecraft.network.NetServerHandler.netManager

The underlying network manager for this server handler.

EntityPlayerMP net.minecraft.network.NetServerHandler.playerEntity

Reference to the EntityPlayerMP object.

int net.minecraft.network.NetServerHandler.ticksForFloatKick

player is kicked if they float for over 80 ticks without flying enabled


The documentation for this class was generated from the following file: