Package net.minecraft.src
Class NetLoginHandler
java.lang.Object
net.minecraft.src.NetHandler
net.minecraft.src.NetLoginHandler
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionNetLoginHandler(MinecraftServer par1MinecraftServer, Socket par2Socket, String par3Str) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleClientCommand(Packet205ClientCommand par1Packet205ClientCommand) voidhandleClientProtocol(Packet2ClientProtocol par1Packet2ClientProtocol) voidhandleErrorMessage(String par1Str, Object[] par2ArrayOfObj) voidhandleLogin(Packet1Login par1Packet1Login) voidhandleServerPing(Packet254ServerPing par1Packet254ServerPing) Handle a server ping packet.voidhandleSharedKey(Packet252SharedKey par1Packet252SharedKey) voidon success the specified username is connected to the minecraftInstance, otherwise they are packet255'dbooleanbooleandetermine if it is a server handlervoidraiseErrorAndDisconnect(String par1Str) voidtryLogin()Logs the user in if a login packet is found, otherwise keeps processing network packets unless the timeout has occurred.voidunexpectedPacket(Packet par1Packet) Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing.Methods inherited from class net.minecraft.src.NetHandler
canProcessPacketsAsync, func_110773_a, func_110774_a, func_142031_a, handleAnimation, handleAttachEntity, handleAutoComplete, handleBlockChange, handleBlockDestroy, handleBlockDig, handleBlockEvent, handleBlockItemSwitch, handleChat, handleClientInfo, handleCloseWindow, handleCollect, handleCreativeSetSlot, handleCustomPayload, handleDebugInfo, handleDestroyEntity, handleDoorChange, handleEnchantItem, handleEntity, handleEntityAction, handleEntityEffect, handleEntityExpOrb, handleEntityHeadRotation, handleEntityMetadata, handleEntityPainting, handleEntityStatus, handleEntityTeleport, handleEntityVelocity, handleExperience, handleExplosion, handleFlying, handleGameEvent, handleGameruleSync, handleHardcoreSpawnSync, handleKeepAlive, handleKickDisconnect, handleLevelSound, handleMapChunk, handleMapChunks, handleMapData, handleMobSpawn, handleMultiBlockChange, handleNamedEntitySpawn, handleOpenWindow, handlePlace, handlePlayerAbilities, handlePlayerInfo, handlePlayerInventory, handlePlayerSync, handleRemoveEntityEffect, handleRespawn, handleServerAuthData, handleSetDisplayObjective, handleSetObjective, handleSetPlayerTeam, handleSetScore, handleSetSlot, handleSleep, handleSpawnPosition, handleStartBlockHarvest, handleStatistic, handleTileEntityData, handleTimerSpeed, handleTransaction, handleUpdateHealth, handleUpdateProgressbar, handleUpdateSign, handleUpdateTime, handleUseEntity, handleVehicleSpawn, handleWeather, handleWindowClick, handleWindowItems, handleWorldParticles
-
Field Details
-
myTCPConnection
-
connectionComplete
public boolean connectionComplete
-
-
Constructor Details
-
NetLoginHandler
public NetLoginHandler(MinecraftServer par1MinecraftServer, Socket par2Socket, String par3Str) throws IOException - Throws:
IOException
-
-
Method Details
-
tryLogin
public void tryLogin()Logs the user in if a login packet is found, otherwise keeps processing network packets unless the timeout has occurred. -
raiseErrorAndDisconnect
-
handleClientProtocol
- Overrides:
handleClientProtocolin classNetHandler
-
handleClientCommand
- Overrides:
handleClientCommandin classNetHandler
-
handleLogin
- Overrides:
handleLoginin classNetHandler
-
initializePlayerConnection
public void initializePlayerConnection()on success the specified username is connected to the minecraftInstance, otherwise they are packet255'd -
handleErrorMessage
- Overrides:
handleErrorMessagein classNetHandler
-
handleServerPing
Handle a server ping packet.- Overrides:
handleServerPingin classNetHandler
-
unexpectedPacket
Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing.- Overrides:
unexpectedPacketin classNetHandler
-
getUsernameAndAddress
-
isServerHandler
public boolean isServerHandler()determine if it is a server handler- Specified by:
isServerHandlerin classNetHandler
-
isConnectionClosed
public boolean isConnectionClosed()- Overrides:
isConnectionClosedin classNetHandler
-