|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.network.packet.NetHandler
net.minecraft.client.multiplayer.NetClientHandler
public class NetClientHandler
Field Summary | |
---|---|
int |
currentServerMaxPlayers
|
String |
field_72560_a
|
MapStorage |
mapStorage
|
List |
playerInfoList
An ArrayList of GuiPlayerInfo (includes all the players' GuiPlayerInfo on the current server) |
Constructor Summary | |
---|---|
NetClientHandler(Minecraft par1Minecraft,
IntegratedServer par2IntegratedServer)
|
|
NetClientHandler(Minecraft par1Minecraft,
String par2Str,
int par3)
|
Method Summary | |
---|---|
void |
addToSendQueue(Packet par1Packet)
Adds the packet to the send queue |
boolean |
canProcessPacketsAsync()
If this returns false, all packets will be queued for the main thread to handle, even if they would otherwise be processed asynchronously. |
void |
cleanup()
sets netManager and worldClient to null |
void |
disconnect()
Disconnects the network connection. |
void |
fmlPacket131Callback(Packet131MapData par1Packet131MapData)
|
static byte |
getConnectionCompatibilityLevel()
|
INetworkManager |
getNetManager()
Return the NetworkManager instance used by this NetClientHandler |
EntityPlayer |
getPlayer()
|
void |
handleAnimation(Packet18Animation par1Packet18Animation)
|
void |
handleAttachEntity(Packet39AttachEntity par1Packet39AttachEntity)
Packet handler |
void |
handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
|
void |
handleBlockChange(Packet53BlockChange par1Packet53BlockChange)
|
void |
handleBlockDestroy(Packet55BlockDestroy par1Packet55BlockDestroy)
|
void |
handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
|
void |
handleBlockItemSwitch(Packet16BlockItemSwitch par1Packet16BlockItemSwitch)
|
void |
handleChat(Packet3Chat par1Packet3Chat)
|
void |
handleCloseWindow(Packet101CloseWindow par1Packet101CloseWindow)
|
void |
handleCollect(Packet22Collect par1Packet22Collect)
|
void |
handleCustomPayload(Packet250CustomPayload par1Packet250CustomPayload)
|
void |
handleDestroyEntity(Packet29DestroyEntity par1Packet29DestroyEntity)
|
void |
handleDoorChange(Packet61DoorChange par1Packet61DoorChange)
|
void |
handleEntity(Packet30Entity par1Packet30Entity)
|
void |
handleEntityEffect(Packet41EntityEffect par1Packet41EntityEffect)
Handle an entity effect packet. |
void |
handleEntityExpOrb(Packet26EntityExpOrb par1Packet26EntityExpOrb)
Handle a entity experience orb packet. |
void |
handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
|
void |
handleEntityMetadata(Packet40EntityMetadata par1Packet40EntityMetadata)
Packet handler |
void |
handleEntityPainting(Packet25EntityPainting par1Packet25EntityPainting)
Packet handler |
void |
handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
Packet handler |
void |
handleEntityTeleport(Packet34EntityTeleport par1Packet34EntityTeleport)
|
void |
handleEntityVelocity(Packet28EntityVelocity par1Packet28EntityVelocity)
Packet handler |
void |
handleErrorMessage(String par1Str,
Object[] par2ArrayOfObj)
|
void |
handleExperience(Packet43Experience par1Packet43Experience)
Handle an experience packet. |
void |
handleExplosion(Packet60Explosion par1Packet60Explosion)
|
void |
handleFlying(Packet10Flying par1Packet10Flying)
|
void |
handleGameEvent(Packet70GameEvent par1Packet70GameEvent)
|
void |
handleKeepAlive(Packet0KeepAlive par1Packet0KeepAlive)
Handle a keep alive packet. |
void |
handleKickDisconnect(Packet255KickDisconnect par1Packet255KickDisconnect)
|
void |
handleLevelSound(Packet62LevelSound par1Packet62LevelSound)
|
void |
handleLogin(Packet1Login par1Packet1Login)
|
void |
handleMapChunk(Packet51MapChunk par1Packet51MapChunk)
Handle Packet51MapChunk (full chunk update of blocks, metadata, light levels, and optionally biome data) |
void |
handleMapChunks(Packet56MapChunks par1Packet56MapChunks)
|
void |
handleMapData(Packet131MapData par1Packet131MapData)
Contains logic for handling packets containing arbitrary unique item data. |
void |
handleMobSpawn(Packet24MobSpawn par1Packet24MobSpawn)
|
void |
handleMultiBlockChange(Packet52MultiBlockChange par1Packet52MultiBlockChange)
|
void |
handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn)
|
void |
handleOpenWindow(Packet100OpenWindow par1Packet100OpenWindow)
|
void |
handlePlayerAbilities(Packet202PlayerAbilities par1Packet202PlayerAbilities)
Handle a player abilities packet. |
void |
handlePlayerInfo(Packet201PlayerInfo par1Packet201PlayerInfo)
Handle a player information packet. |
void |
handlePlayerInventory(Packet5PlayerInventory par1Packet5PlayerInventory)
|
void |
handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
Handle a remove entity effect packet. |
void |
handleRespawn(Packet9Respawn par1Packet9Respawn)
respawns the player |
void |
handleServerAuthData(Packet253ServerAuthData par1Packet253ServerAuthData)
|
void |
handleSetSlot(Packet103SetSlot par1Packet103SetSlot)
|
void |
handleSharedKey(Packet252SharedKey par1Packet252SharedKey)
|
void |
handleSleep(Packet17Sleep par1Packet17Sleep)
|
void |
handleSpawnPosition(Packet6SpawnPosition par1Packet6SpawnPosition)
|
void |
handleStatistic(Packet200Statistic par1Packet200Statistic)
Increment player statistics |
void |
handleTileEntityData(Packet132TileEntityData par1Packet132TileEntityData)
|
void |
handleTransaction(Packet106Transaction par1Packet106Transaction)
|
void |
handleUpdateHealth(Packet8UpdateHealth par1Packet8UpdateHealth)
Recieves player health from the server and then proceeds to set it locally on the client. |
void |
handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
|
void |
handleUpdateSign(Packet130UpdateSign par1Packet130UpdateSign)
Updates Client side signs |
void |
handleUpdateTime(Packet4UpdateTime par1Packet4UpdateTime)
|
void |
handleVanilla250Packet(Packet250CustomPayload par1Packet250CustomPayload)
|
void |
handleVehicleSpawn(Packet23VehicleSpawn par1Packet23VehicleSpawn)
|
void |
handleWeather(Packet71Weather par1Packet71Weather)
Handles weather packet |
void |
handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
|
boolean |
isServerHandler()
determine if it is a server handler |
void |
processReadPackets()
Processes the packets that have been read since the last call to this function. |
void |
quitWithPacket(Packet par1Packet)
|
static void |
setConnectionCompatibilityLevel(byte connectionCompatibilityLevel)
|
Methods inherited from class net.minecraft.network.packet.NetHandler |
---|
handleBlockDig, handleClientCommand, handleClientInfo, handleClientProtocol, handleCreativeSetSlot, handleEnchantItem, handleEntityAction, handlePlace, handleServerPing, handleUseEntity, handleWindowClick, unexpectedPacket |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public String field_72560_a
public MapStorage mapStorage
public List playerInfoList
public int currentServerMaxPlayers
Constructor Detail |
---|
public NetClientHandler(Minecraft par1Minecraft, String par2Str, int par3) throws IOException
IOException
public NetClientHandler(Minecraft par1Minecraft, IntegratedServer par2IntegratedServer) throws IOException
IOException
Method Detail |
---|
public void cleanup()
public void processReadPackets()
public void handleServerAuthData(Packet253ServerAuthData par1Packet253ServerAuthData)
handleServerAuthData
in class NetHandler
public void handleSharedKey(Packet252SharedKey par1Packet252SharedKey)
handleSharedKey
in class NetHandler
public void handleLogin(Packet1Login par1Packet1Login)
handleLogin
in class NetHandler
public void handleVehicleSpawn(Packet23VehicleSpawn par1Packet23VehicleSpawn)
handleVehicleSpawn
in class NetHandler
public void handleEntityExpOrb(Packet26EntityExpOrb par1Packet26EntityExpOrb)
handleEntityExpOrb
in class NetHandler
public void handleWeather(Packet71Weather par1Packet71Weather)
handleWeather
in class NetHandler
public void handleEntityPainting(Packet25EntityPainting par1Packet25EntityPainting)
handleEntityPainting
in class NetHandler
public void handleEntityVelocity(Packet28EntityVelocity par1Packet28EntityVelocity)
handleEntityVelocity
in class NetHandler
public void handleEntityMetadata(Packet40EntityMetadata par1Packet40EntityMetadata)
handleEntityMetadata
in class NetHandler
public void handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn)
handleNamedEntitySpawn
in class NetHandler
public void handleEntityTeleport(Packet34EntityTeleport par1Packet34EntityTeleport)
handleEntityTeleport
in class NetHandler
public void handleBlockItemSwitch(Packet16BlockItemSwitch par1Packet16BlockItemSwitch)
handleBlockItemSwitch
in class NetHandler
public void handleEntity(Packet30Entity par1Packet30Entity)
handleEntity
in class NetHandler
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
handleEntityHeadRotation
in class NetHandler
public void handleDestroyEntity(Packet29DestroyEntity par1Packet29DestroyEntity)
handleDestroyEntity
in class NetHandler
public void handleFlying(Packet10Flying par1Packet10Flying)
handleFlying
in class NetHandler
public void handleMultiBlockChange(Packet52MultiBlockChange par1Packet52MultiBlockChange)
handleMultiBlockChange
in class NetHandler
public void handleMapChunk(Packet51MapChunk par1Packet51MapChunk)
handleMapChunk
in class NetHandler
public void handleBlockChange(Packet53BlockChange par1Packet53BlockChange)
handleBlockChange
in class NetHandler
public void handleKickDisconnect(Packet255KickDisconnect par1Packet255KickDisconnect)
handleKickDisconnect
in class NetHandler
public void handleErrorMessage(String par1Str, Object[] par2ArrayOfObj)
handleErrorMessage
in class NetHandler
public void quitWithPacket(Packet par1Packet)
public void addToSendQueue(Packet par1Packet)
public void handleCollect(Packet22Collect par1Packet22Collect)
handleCollect
in class NetHandler
public void handleChat(Packet3Chat par1Packet3Chat)
handleChat
in class NetHandler
public void handleAnimation(Packet18Animation par1Packet18Animation)
handleAnimation
in class NetHandler
public void handleSleep(Packet17Sleep par1Packet17Sleep)
handleSleep
in class NetHandler
public void disconnect()
public void handleMobSpawn(Packet24MobSpawn par1Packet24MobSpawn)
handleMobSpawn
in class NetHandler
public void handleUpdateTime(Packet4UpdateTime par1Packet4UpdateTime)
handleUpdateTime
in class NetHandler
public void handleSpawnPosition(Packet6SpawnPosition par1Packet6SpawnPosition)
handleSpawnPosition
in class NetHandler
public void handleAttachEntity(Packet39AttachEntity par1Packet39AttachEntity)
handleAttachEntity
in class NetHandler
public void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
handleEntityStatus
in class NetHandler
public void handleUpdateHealth(Packet8UpdateHealth par1Packet8UpdateHealth)
handleUpdateHealth
in class NetHandler
public void handleExperience(Packet43Experience par1Packet43Experience)
handleExperience
in class NetHandler
public void handleRespawn(Packet9Respawn par1Packet9Respawn)
handleRespawn
in class NetHandler
public void handleExplosion(Packet60Explosion par1Packet60Explosion)
handleExplosion
in class NetHandler
public void handleOpenWindow(Packet100OpenWindow par1Packet100OpenWindow)
handleOpenWindow
in class NetHandler
public void handleSetSlot(Packet103SetSlot par1Packet103SetSlot)
handleSetSlot
in class NetHandler
public void handleTransaction(Packet106Transaction par1Packet106Transaction)
handleTransaction
in class NetHandler
public void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
handleWindowItems
in class NetHandler
public void handleUpdateSign(Packet130UpdateSign par1Packet130UpdateSign)
handleUpdateSign
in class NetHandler
public void handleTileEntityData(Packet132TileEntityData par1Packet132TileEntityData)
handleTileEntityData
in class NetHandler
public void handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
handleUpdateProgressbar
in class NetHandler
public void handlePlayerInventory(Packet5PlayerInventory par1Packet5PlayerInventory)
handlePlayerInventory
in class NetHandler
public void handleCloseWindow(Packet101CloseWindow par1Packet101CloseWindow)
handleCloseWindow
in class NetHandler
public void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
handleBlockEvent
in class NetHandler
public void handleBlockDestroy(Packet55BlockDestroy par1Packet55BlockDestroy)
handleBlockDestroy
in class NetHandler
public void handleMapChunks(Packet56MapChunks par1Packet56MapChunks)
handleMapChunks
in class NetHandler
public boolean canProcessPacketsAsync()
canProcessPacketsAsync
in class NetHandler
public void handleGameEvent(Packet70GameEvent par1Packet70GameEvent)
handleGameEvent
in class NetHandler
public void handleMapData(Packet131MapData par1Packet131MapData)
handleMapData
in class NetHandler
public void fmlPacket131Callback(Packet131MapData par1Packet131MapData)
public void handleDoorChange(Packet61DoorChange par1Packet61DoorChange)
handleDoorChange
in class NetHandler
public void handleStatistic(Packet200Statistic par1Packet200Statistic)
handleStatistic
in class NetHandler
public void handleEntityEffect(Packet41EntityEffect par1Packet41EntityEffect)
handleEntityEffect
in class NetHandler
public void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
handleRemoveEntityEffect
in class NetHandler
public boolean isServerHandler()
isServerHandler
in class NetHandler
public void handlePlayerInfo(Packet201PlayerInfo par1Packet201PlayerInfo)
handlePlayerInfo
in class NetHandler
public void handleKeepAlive(Packet0KeepAlive par1Packet0KeepAlive)
handleKeepAlive
in class NetHandler
public void handlePlayerAbilities(Packet202PlayerAbilities par1Packet202PlayerAbilities)
handlePlayerAbilities
in class NetHandler
public void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
handleAutoComplete
in class NetHandler
public void handleLevelSound(Packet62LevelSound par1Packet62LevelSound)
handleLevelSound
in class NetHandler
public void handleCustomPayload(Packet250CustomPayload par1Packet250CustomPayload)
handleCustomPayload
in class NetHandler
public void handleVanilla250Packet(Packet250CustomPayload par1Packet250CustomPayload)
handleVanilla250Packet
in class NetHandler
public INetworkManager getNetManager()
public EntityPlayer getPlayer()
getPlayer
in class NetHandler
public static void setConnectionCompatibilityLevel(byte connectionCompatibilityLevel)
public static byte getConnectionCompatibilityLevel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |