|
||||||||||
| 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 NetHandlerpublic void handleSharedKey(Packet252SharedKey par1Packet252SharedKey)
handleSharedKey in class NetHandlerpublic void handleLogin(Packet1Login par1Packet1Login)
handleLogin in class NetHandlerpublic void handleVehicleSpawn(Packet23VehicleSpawn par1Packet23VehicleSpawn)
handleVehicleSpawn in class NetHandlerpublic void handleEntityExpOrb(Packet26EntityExpOrb par1Packet26EntityExpOrb)
handleEntityExpOrb in class NetHandlerpublic void handleWeather(Packet71Weather par1Packet71Weather)
handleWeather in class NetHandlerpublic void handleEntityPainting(Packet25EntityPainting par1Packet25EntityPainting)
handleEntityPainting in class NetHandlerpublic void handleEntityVelocity(Packet28EntityVelocity par1Packet28EntityVelocity)
handleEntityVelocity in class NetHandlerpublic void handleEntityMetadata(Packet40EntityMetadata par1Packet40EntityMetadata)
handleEntityMetadata in class NetHandlerpublic void handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn)
handleNamedEntitySpawn in class NetHandlerpublic void handleEntityTeleport(Packet34EntityTeleport par1Packet34EntityTeleport)
handleEntityTeleport in class NetHandlerpublic void handleBlockItemSwitch(Packet16BlockItemSwitch par1Packet16BlockItemSwitch)
handleBlockItemSwitch in class NetHandlerpublic void handleEntity(Packet30Entity par1Packet30Entity)
handleEntity in class NetHandlerpublic void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
handleEntityHeadRotation in class NetHandlerpublic void handleDestroyEntity(Packet29DestroyEntity par1Packet29DestroyEntity)
handleDestroyEntity in class NetHandlerpublic void handleFlying(Packet10Flying par1Packet10Flying)
handleFlying in class NetHandlerpublic void handleMultiBlockChange(Packet52MultiBlockChange par1Packet52MultiBlockChange)
handleMultiBlockChange in class NetHandlerpublic void handleMapChunk(Packet51MapChunk par1Packet51MapChunk)
handleMapChunk in class NetHandlerpublic void handleBlockChange(Packet53BlockChange par1Packet53BlockChange)
handleBlockChange in class NetHandlerpublic void handleKickDisconnect(Packet255KickDisconnect par1Packet255KickDisconnect)
handleKickDisconnect in class NetHandler
public void handleErrorMessage(String par1Str,
Object[] par2ArrayOfObj)
handleErrorMessage in class NetHandlerpublic void quitWithPacket(Packet par1Packet)
public void addToSendQueue(Packet par1Packet)
public void handleCollect(Packet22Collect par1Packet22Collect)
handleCollect in class NetHandlerpublic void handleChat(Packet3Chat par1Packet3Chat)
handleChat in class NetHandlerpublic void handleAnimation(Packet18Animation par1Packet18Animation)
handleAnimation in class NetHandlerpublic void handleSleep(Packet17Sleep par1Packet17Sleep)
handleSleep in class NetHandlerpublic void disconnect()
public void handleMobSpawn(Packet24MobSpawn par1Packet24MobSpawn)
handleMobSpawn in class NetHandlerpublic void handleUpdateTime(Packet4UpdateTime par1Packet4UpdateTime)
handleUpdateTime in class NetHandlerpublic void handleSpawnPosition(Packet6SpawnPosition par1Packet6SpawnPosition)
handleSpawnPosition in class NetHandlerpublic void handleAttachEntity(Packet39AttachEntity par1Packet39AttachEntity)
handleAttachEntity in class NetHandlerpublic void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
handleEntityStatus in class NetHandlerpublic void handleUpdateHealth(Packet8UpdateHealth par1Packet8UpdateHealth)
handleUpdateHealth in class NetHandlerpublic void handleExperience(Packet43Experience par1Packet43Experience)
handleExperience in class NetHandlerpublic void handleRespawn(Packet9Respawn par1Packet9Respawn)
handleRespawn in class NetHandlerpublic void handleExplosion(Packet60Explosion par1Packet60Explosion)
handleExplosion in class NetHandlerpublic void handleOpenWindow(Packet100OpenWindow par1Packet100OpenWindow)
handleOpenWindow in class NetHandlerpublic void handleSetSlot(Packet103SetSlot par1Packet103SetSlot)
handleSetSlot in class NetHandlerpublic void handleTransaction(Packet106Transaction par1Packet106Transaction)
handleTransaction in class NetHandlerpublic void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
handleWindowItems in class NetHandlerpublic void handleUpdateSign(Packet130UpdateSign par1Packet130UpdateSign)
handleUpdateSign in class NetHandlerpublic void handleTileEntityData(Packet132TileEntityData par1Packet132TileEntityData)
handleTileEntityData in class NetHandlerpublic void handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
handleUpdateProgressbar in class NetHandlerpublic void handlePlayerInventory(Packet5PlayerInventory par1Packet5PlayerInventory)
handlePlayerInventory in class NetHandlerpublic void handleCloseWindow(Packet101CloseWindow par1Packet101CloseWindow)
handleCloseWindow in class NetHandlerpublic void handleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
handleBlockEvent in class NetHandlerpublic void handleBlockDestroy(Packet55BlockDestroy par1Packet55BlockDestroy)
handleBlockDestroy in class NetHandlerpublic void handleMapChunks(Packet56MapChunks par1Packet56MapChunks)
handleMapChunks in class NetHandlerpublic boolean canProcessPacketsAsync()
canProcessPacketsAsync in class NetHandlerpublic void handleGameEvent(Packet70GameEvent par1Packet70GameEvent)
handleGameEvent in class NetHandlerpublic void handleMapData(Packet131MapData par1Packet131MapData)
handleMapData in class NetHandlerpublic void fmlPacket131Callback(Packet131MapData par1Packet131MapData)
public void handleDoorChange(Packet61DoorChange par1Packet61DoorChange)
handleDoorChange in class NetHandlerpublic void handleStatistic(Packet200Statistic par1Packet200Statistic)
handleStatistic in class NetHandlerpublic void handleEntityEffect(Packet41EntityEffect par1Packet41EntityEffect)
handleEntityEffect in class NetHandlerpublic void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
handleRemoveEntityEffect in class NetHandlerpublic boolean isServerHandler()
isServerHandler in class NetHandlerpublic void handlePlayerInfo(Packet201PlayerInfo par1Packet201PlayerInfo)
handlePlayerInfo in class NetHandlerpublic void handleKeepAlive(Packet0KeepAlive par1Packet0KeepAlive)
handleKeepAlive in class NetHandlerpublic void handlePlayerAbilities(Packet202PlayerAbilities par1Packet202PlayerAbilities)
handlePlayerAbilities in class NetHandlerpublic void handleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete)
handleAutoComplete in class NetHandlerpublic void handleLevelSound(Packet62LevelSound par1Packet62LevelSound)
handleLevelSound in class NetHandlerpublic void handleCustomPayload(Packet250CustomPayload par1Packet250CustomPayload)
handleCustomPayload in class NetHandlerpublic void handleVanilla250Packet(Packet250CustomPayload par1Packet250CustomPayload)
handleVanilla250Packet in class NetHandlerpublic INetworkManager getNetManager()
public EntityPlayer getPlayer()
getPlayer in class NetHandlerpublic 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 | |||||||||