Package net.minecraft.src
Class NetClientHandler
- java.lang.Object
-
- net.minecraft.src.NetHandler
-
- net.minecraft.src.NetClientHandler
-
public class NetClientHandler extends NetHandler
-
-
Field Summary
Fields Modifier and Type Field Description int
currentServerMaxPlayers
double
estimatedTps
java.lang.String
field_1209_a
java.util.Deque<java.lang.Double>
last15SecondTps
long
lastLongWorldTime
long
lastLongWorldUpdate
long
lastWorldTime
long
lastWorldUpdate
double
longEstimatedTps
MapStorage
mapStorage
Minecraft
mc
NetworkManager
netManager
java.util.List<GuiPlayerInfo>
playerNames
-
Fields inherited from class net.minecraft.src.NetHandler
protocolVersion
-
-
Constructor Summary
Constructors Constructor Description NetClientHandler(Minecraft var1, java.lang.String var2, int var3, int protocolVersion)
-
Method Summary
-
Methods inherited from class net.minecraft.src.NetHandler
getProtocolVersion, handleBlockDig, handleBlockItemSwitch, handleCreativeSetSlot, handleCustomPayload, handleEnchantItem, handleEntityAction, handleLegacyChunkPacket, handlePlace, handleRespawn, handleServerPing, handleUseEntity, handleWindowClick, registerPacket
-
-
-
-
Field Detail
-
lastWorldTime
public long lastWorldTime
-
estimatedTps
public double estimatedTps
-
lastWorldUpdate
public long lastWorldUpdate
-
lastLongWorldUpdate
public long lastLongWorldUpdate
-
lastLongWorldTime
public long lastLongWorldTime
-
last15SecondTps
public java.util.Deque<java.lang.Double> last15SecondTps
-
longEstimatedTps
public double longEstimatedTps
-
netManager
public NetworkManager netManager
-
field_1209_a
public java.lang.String field_1209_a
-
mc
public Minecraft mc
-
mapStorage
public MapStorage mapStorage
-
playerNames
public java.util.List<GuiPlayerInfo> playerNames
-
currentServerMaxPlayers
public int currentServerMaxPlayers
-
-
Constructor Detail
-
NetClientHandler
public NetClientHandler(Minecraft var1, java.lang.String var2, int var3, int protocolVersion) throws java.net.UnknownHostException, java.io.IOException
- Throws:
java.net.UnknownHostException
java.io.IOException
-
-
Method Detail
-
processReadPackets
public void processReadPackets()
-
handleLogin
public void handleLogin(Packet1Login par1Packet1Login)
- Overrides:
handleLogin
in classNetHandler
-
handleLogin
public void handleLogin(Packet1Login_1_1 par1Packet1Login)
- Overrides:
handleLogin
in classNetHandler
-
handlePickupSpawn
public void handlePickupSpawn(Packet21PickupSpawn par1Packet21PickupSpawn)
- Overrides:
handlePickupSpawn
in classNetHandler
-
handleVehicleSpawn
public void handleVehicleSpawn(Packet23VehicleSpawn par1Packet23VehicleSpawn)
- Overrides:
handleVehicleSpawn
in classNetHandler
-
handleEntityExpOrb
public void handleEntityExpOrb(Packet26EntityExpOrb par1Packet26EntityExpOrb)
- Overrides:
handleEntityExpOrb
in classNetHandler
-
handleWeather
public void handleWeather(Packet71Weather par1Packet71Weather)
- Overrides:
handleWeather
in classNetHandler
-
handleEntityPainting
public void handleEntityPainting(Packet25EntityPainting par1Packet25EntityPainting)
- Overrides:
handleEntityPainting
in classNetHandler
-
handleEntityVelocity
public void handleEntityVelocity(Packet28EntityVelocity par1Packet28EntityVelocity)
- Overrides:
handleEntityVelocity
in classNetHandler
-
handleEntityMetadata
public void handleEntityMetadata(Packet40EntityMetadata par1Packet40EntityMetadata)
- Overrides:
handleEntityMetadata
in classNetHandler
-
handleNamedEntitySpawn
public void handleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn)
- Overrides:
handleNamedEntitySpawn
in classNetHandler
-
handleEntityTeleport
public void handleEntityTeleport(Packet34EntityTeleport par1Packet34EntityTeleport)
- Overrides:
handleEntityTeleport
in classNetHandler
-
handleEntity
public void handleEntity(Packet30Entity par1Packet30Entity)
- Overrides:
handleEntity
in classNetHandler
-
handleEntityHeadRotation
public void handleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation)
- Overrides:
handleEntityHeadRotation
in classNetHandler
-
handleDestroyEntity
public void handleDestroyEntity(Packet29DestroyEntity par1Packet29DestroyEntity)
- Overrides:
handleDestroyEntity
in classNetHandler
-
handleFlying
public void handleFlying(Packet10Flying par1Packet10Flying)
- Overrides:
handleFlying
in classNetHandler
-
handlePreChunk
public void handlePreChunk(Packet50PreChunk par1Packet50PreChunk)
- Overrides:
handlePreChunk
in classNetHandler
-
handleMultiBlockChange
public void handleMultiBlockChange(Packet52MultiBlockChange par1Packet52MultiBlockChange)
- Overrides:
handleMultiBlockChange
in classNetHandler
-
func_48487_a
public void func_48487_a(Packet51MapChunk par1Packet51MapChunk)
- Overrides:
func_48487_a
in classNetHandler
-
handleBlockChange
public void handleBlockChange(Packet53BlockChange par1Packet53BlockChange)
- Overrides:
handleBlockChange
in classNetHandler
-
handleKickDisconnect
public void handleKickDisconnect(Packet255KickDisconnect par1Packet255KickDisconnect)
- Overrides:
handleKickDisconnect
in classNetHandler
-
handleErrorMessage
public void handleErrorMessage(java.lang.String var1, java.lang.Object[] var2)
- Overrides:
handleErrorMessage
in classNetHandler
-
quitWithPacket
public void quitWithPacket(Packet var1)
-
addToSendQueue
public void addToSendQueue(Packet var1)
-
handleCollect
public void handleCollect(Packet22Collect par1Packet22Collect)
- Overrides:
handleCollect
in classNetHandler
-
handleChat
public void handleChat(Packet3Chat par1Packet3Chat)
- Overrides:
handleChat
in classNetHandler
-
handleAnimation
public void handleAnimation(Packet18Animation par1Packet18Animation)
- Overrides:
handleAnimation
in classNetHandler
-
handleSleep
public void handleSleep(Packet17Sleep par1Packet17Sleep)
- Overrides:
handleSleep
in classNetHandler
-
handleHandshake
public void handleHandshake(Packet2Handshake par1Packet2Handshake)
- Overrides:
handleHandshake
in classNetHandler
-
disconnect
public void disconnect()
-
handleMobSpawn
public void handleMobSpawn(Packet24MobSpawn par1Packet24MobSpawn)
- Overrides:
handleMobSpawn
in classNetHandler
-
handleUpdateTime
public void handleUpdateTime(Packet4UpdateTime par1Packet4UpdateTime)
- Overrides:
handleUpdateTime
in classNetHandler
-
handleSpawnPosition
public void handleSpawnPosition(Packet6SpawnPosition par1Packet6SpawnPosition)
- Overrides:
handleSpawnPosition
in classNetHandler
-
handleAttachEntity
public void handleAttachEntity(Packet39AttachEntity par1Packet39AttachEntity)
- Overrides:
handleAttachEntity
in classNetHandler
-
handleEntityStatus
public void handleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus)
- Overrides:
handleEntityStatus
in classNetHandler
-
handleUpdateHealth
public void handleUpdateHealth(Packet8UpdateHealth par1Packet8UpdateHealth)
- Overrides:
handleUpdateHealth
in classNetHandler
-
handleExperience
public void handleExperience(Packet43Experience par1Packet43Experience)
- Overrides:
handleExperience
in classNetHandler
-
handleRespawn
public void handleRespawn(Packet9Respawn par1Packet9Respawn)
- Overrides:
handleRespawn
in classNetHandler
-
handleExplosion
public void handleExplosion(Packet60Explosion par1Packet60Explosion)
- Overrides:
handleExplosion
in classNetHandler
-
handleOpenWindow
public void handleOpenWindow(Packet100OpenWindow par1Packet100OpenWindow)
- Overrides:
handleOpenWindow
in classNetHandler
-
handleSetSlot
public void handleSetSlot(Packet103SetSlot par1Packet103SetSlot)
- Overrides:
handleSetSlot
in classNetHandler
-
handleTransaction
public void handleTransaction(Packet106Transaction par1Packet106Transaction)
- Overrides:
handleTransaction
in classNetHandler
-
handleWindowItems
public void handleWindowItems(Packet104WindowItems par1Packet104WindowItems)
- Overrides:
handleWindowItems
in classNetHandler
-
handleUpdateSign
public void handleUpdateSign(Packet130UpdateSign par1Packet130UpdateSign)
- Overrides:
handleUpdateSign
in classNetHandler
-
handleTileEntityData
public void handleTileEntityData(Packet132TileEntityData par1Packet132TileEntityData)
- Overrides:
handleTileEntityData
in classNetHandler
-
handleUpdateProgressbar
public void handleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar)
- Overrides:
handleUpdateProgressbar
in classNetHandler
-
handlePlayerInventory
public void handlePlayerInventory(Packet5PlayerInventory par1Packet5PlayerInventory)
- Overrides:
handlePlayerInventory
in classNetHandler
-
handleCloseWindow
public void handleCloseWindow(Packet101CloseWindow par1Packet101CloseWindow)
- Overrides:
handleCloseWindow
in classNetHandler
-
handlePlayNoteBlock
public void handlePlayNoteBlock(Packet54PlayNoteBlock par1Packet54PlayNoteBlock)
- Overrides:
handlePlayNoteBlock
in classNetHandler
-
handleBed
public void handleBed(Packet70Bed par1Packet70Bed)
- Overrides:
handleBed
in classNetHandler
-
handleMapData
public void handleMapData(Packet131MapData par1Packet131MapData)
- Overrides:
handleMapData
in classNetHandler
-
handleDoorChange
public void handleDoorChange(Packet61DoorChange par1Packet61DoorChange)
- Overrides:
handleDoorChange
in classNetHandler
-
handleStatistic
public void handleStatistic(Packet200Statistic par1Packet200Statistic)
- Overrides:
handleStatistic
in classNetHandler
-
handleEntityEffect
public void handleEntityEffect(Packet41EntityEffect par1Packet41EntityEffect)
- Overrides:
handleEntityEffect
in classNetHandler
-
handleRemoveEntityEffect
public void handleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect)
- Overrides:
handleRemoveEntityEffect
in classNetHandler
-
isServerHandler
public boolean isServerHandler()
- Specified by:
isServerHandler
in classNetHandler
-
handlePlayerInfo
public void handlePlayerInfo(Packet201PlayerInfo par1Packet201PlayerInfo)
- Overrides:
handlePlayerInfo
in classNetHandler
-
handleKeepAlive
public void handleKeepAlive(Packet0KeepAlive par1Packet0KeepAlive)
- Overrides:
handleKeepAlive
in classNetHandler
-
func_50100_a
public void func_50100_a(Packet202PlayerAbilities par1Packet202PlayerAbilities)
- Overrides:
func_50100_a
in classNetHandler
-
-