Package net.minecraft.src
Class NetHandler
java.lang.Object
net.minecraft.src.NetHandler
- Direct Known Subclasses:
NetClientHandler,NetLoginHandler,NetServerHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf this returns false, all packets will be queued for the main thread to handle, even if they would otherwise be processed asynchronously.voidfunc_110773_a(Packet44UpdateAttributes par1Packet44UpdateAttributes) voidfunc_110774_a(Packet27PlayerInput par1Packet27PlayerInput) voidfunc_142031_a(Packet133TileEditorOpen par1Packet133TileEditorOpen) voidhandleAnimation(Packet18Animation par1Packet18Animation) voidhandleAttachEntity(Packet39AttachEntity par1Packet39AttachEntity) Packet handlervoidhandleAutoComplete(Packet203AutoComplete par1Packet203AutoComplete) voidhandleBlockChange(Packet53BlockChange par1Packet53BlockChange) voidhandleBlockDestroy(Packet55BlockDestroy par1Packet55BlockDestroy) voidhandleBlockDig(Packet14BlockDig par1Packet14BlockDig) voidhandleBlockEvent(Packet54PlayNoteBlock par1Packet54PlayNoteBlock) voidhandleBlockItemSwitch(Packet16BlockItemSwitch par1Packet16BlockItemSwitch) voidhandleChat(Packet3Chat par1Packet3Chat) voidhandleClientCommand(Packet205ClientCommand par1Packet205ClientCommand) voidhandleClientInfo(Packet204ClientInfo par1Packet204ClientInfo) voidhandleClientProtocol(Packet2ClientProtocol par1Packet2ClientProtocol) voidhandleCloseWindow(Packet101CloseWindow par1Packet101CloseWindow) voidhandleCollect(Packet22Collect par1Packet22Collect) voidhandleCreativeSetSlot(Packet107CreativeSetSlot par1Packet107CreativeSetSlot) Handle a creative slot packet.voidhandleCustomPayload(Packet250CustomPayload par1Packet250CustomPayload) voidhandleDebugInfo(DebugInfoPacket debugInfoPacket) Updates debug infosvoidhandleDestroyEntity(Packet29DestroyEntity par1Packet29DestroyEntity) voidhandleDoorChange(Packet61DoorChange par1Packet61DoorChange) voidhandleEnchantItem(Packet108EnchantItem par1Packet108EnchantItem) voidhandleEntity(Packet30Entity par1Packet30Entity) voidhandleEntityAction(Packet19EntityAction par1Packet19EntityAction) runs registerPacket on the given Packet19EntityActionvoidhandleEntityEffect(Packet41EntityEffect par1Packet41EntityEffect) Handle an entity effect packet.voidhandleEntityExpOrb(Packet26EntityExpOrb par1Packet26EntityExpOrb) Handle a entity experience orb packet.voidhandleEntityHeadRotation(Packet35EntityHeadRotation par1Packet35EntityHeadRotation) voidhandleEntityMetadata(Packet40EntityMetadata par1Packet40EntityMetadata) Packet handlervoidhandleEntityPainting(Packet25EntityPainting par1Packet25EntityPainting) Packet handlervoidhandleEntityStatus(Packet38EntityStatus par1Packet38EntityStatus) Packet handlervoidhandleEntityTeleport(Packet34EntityTeleport par1Packet34EntityTeleport) voidhandleEntityVelocity(Packet28EntityVelocity par1Packet28EntityVelocity) Packet handlervoidhandleErrorMessage(String par1Str, Object[] par2ArrayOfObj) voidhandleExperience(Packet43Experience par1Packet43Experience) Handle an experience packet.voidhandleExplosion(Packet60Explosion par1Packet60Explosion) voidhandleFlying(Packet10Flying par1Packet10Flying) voidhandleGameEvent(Packet70GameEvent par1Packet70GameEvent) voidhandleGameruleSync(GameruleSyncPacket gameruleSyncPacket) Handle a gamerule server/client sync packet.voidhandleHardcoreSpawnSync(HardcoreSpawnPacket hardcoreSpawnPacket) voidhandleKeepAlive(Packet0KeepAlive par1Packet0KeepAlive) Handle a keep alive packet.voidhandleKickDisconnect(Packet255KickDisconnect par1Packet255KickDisconnect) voidhandleLevelSound(Packet62LevelSound par1Packet62LevelSound) voidhandleLogin(Packet1Login par1Packet1Login) voidhandleMapChunk(Packet51MapChunk par1Packet51MapChunk) Handle Packet51MapChunk (full chunk update of blocks, metadata, light levels, and optionally biome data)voidhandleMapChunks(Packet56MapChunks par1Packet56MapChunks) voidhandleMapData(Packet131MapData par1Packet131MapData) Contains logic for handling packets containing arbitrary unique item data.voidhandleMobSpawn(Packet24MobSpawn par1Packet24MobSpawn) voidhandleMultiBlockChange(Packet52MultiBlockChange par1Packet52MultiBlockChange) voidhandleNamedEntitySpawn(Packet20NamedEntitySpawn par1Packet20NamedEntitySpawn) voidhandleOpenWindow(Packet100OpenWindow par1Packet100OpenWindow) voidhandlePlace(Packet15Place par1Packet15Place) voidhandlePlayerAbilities(Packet202PlayerAbilities par1Packet202PlayerAbilities) Handle a player abilities packet.voidhandlePlayerInfo(Packet201PlayerInfo par1Packet201PlayerInfo) Handle a player information packet.voidhandlePlayerInventory(Packet5PlayerInventory par1Packet5PlayerInventory) voidhandlePlayerSync(PlayerSyncPacket packet) voidhandleRemoveEntityEffect(Packet42RemoveEntityEffect par1Packet42RemoveEntityEffect) Handle a remove entity effect packet.voidhandleRespawn(Packet9Respawn par1Packet9Respawn) respawns the playervoidhandleServerAuthData(Packet253ServerAuthData par1Packet253ServerAuthData) voidhandleServerPing(Packet254ServerPing par1Packet254ServerPing) Handle a server ping packet.voidhandleSetDisplayObjective(Packet208SetDisplayObjective par1Packet208SetDisplayObjective) Handle a set display objective packet.voidhandleSetObjective(Packet206SetObjective par1Packet206SetObjective) Handle a set objective packet.voidhandleSetPlayerTeam(Packet209SetPlayerTeam par1Packet209SetPlayerTeam) Handle a set player team packet.voidhandleSetScore(Packet207SetScore par1Packet207SetScore) Handle a set score packet.voidhandleSetSlot(Packet103SetSlot par1Packet103SetSlot) voidhandleSharedKey(Packet252SharedKey par1Packet252SharedKey) voidhandleSleep(Packet17Sleep par1Packet17Sleep) voidhandleSpawnPosition(Packet6SpawnPosition par1Packet6SpawnPosition) voidvoidhandleStatistic(Packet200Statistic par1Packet200Statistic) Increment player statisticsvoidhandleTileEntityData(Packet132TileEntityData par1Packet132TileEntityData) voidhandleTimerSpeed(TimerSpeedPacket timerSpeedPacket) voidhandleTransaction(Packet106Transaction par1Packet106Transaction) voidhandleUpdateHealth(Packet8UpdateHealth par1Packet8UpdateHealth) Recieves player health from the server and then proceeds to set it locally on the client.voidhandleUpdateProgressbar(Packet105UpdateProgressbar par1Packet105UpdateProgressbar) voidhandleUpdateSign(Packet130UpdateSign par1Packet130UpdateSign) Updates Client side signsvoidhandleUpdateTime(Packet4UpdateTime par1Packet4UpdateTime) voidhandleUseEntity(Packet7UseEntity par1Packet7UseEntity) voidhandleVehicleSpawn(Packet23VehicleSpawn par1Packet23VehicleSpawn) voidhandleWeather(Packet71Weather par1Packet71Weather) Handles weather packetvoidhandleWindowClick(Packet102WindowClick par1Packet102WindowClick) voidhandleWindowItems(Packet104WindowItems par1Packet104WindowItems) voidhandleWorldParticles(Packet63WorldParticles par1Packet63WorldParticles) Handle a world particles packet.booleanabstract booleandetermine if it is a server handlervoidunexpectedPacket(Packet par1Packet) Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing.
-
Constructor Details
-
NetHandler
public NetHandler()
-
-
Method Details
-
isServerHandler
public abstract boolean isServerHandler()determine if it is a server handler -
handleMapChunk
Handle Packet51MapChunk (full chunk update of blocks, metadata, light levels, and optionally biome data) -
unexpectedPacket
Default handler called for packets that don't have their own handlers in NetClientHandler; currentlly does nothing. -
handleErrorMessage
-
handleKickDisconnect
-
handleLogin
-
handleFlying
-
handleMultiBlockChange
-
handleBlockDig
-
handleBlockChange
-
handleNamedEntitySpawn
-
handleEntity
-
handleEntityTeleport
-
handlePlace
-
handleBlockItemSwitch
-
handleDestroyEntity
-
handleCollect
-
handleChat
-
handleVehicleSpawn
-
handleAnimation
-
handleEntityAction
runs registerPacket on the given Packet19EntityAction -
handleClientProtocol
-
handleServerAuthData
-
handleMobSpawn
-
handleUpdateTime
-
handleSpawnPosition
-
handleEntityVelocity
Packet handler -
handleEntityMetadata
Packet handler -
handleAttachEntity
Packet handler -
handleUseEntity
-
handleEntityStatus
Packet handler -
handleUpdateHealth
Recieves player health from the server and then proceeds to set it locally on the client. -
handleRespawn
respawns the player -
handleExplosion
-
handleOpenWindow
-
handleCloseWindow
-
handleWindowClick
-
handleSetSlot
-
handleWindowItems
-
handleUpdateSign
Updates Client side signs -
handleUpdateProgressbar
-
handlePlayerInventory
-
handleTransaction
-
handleEntityPainting
Packet handler -
handleBlockEvent
-
handleStatistic
Increment player statistics -
handleSleep
-
func_110774_a
-
handleGameEvent
-
handleWeather
Handles weather packet -
handleMapData
Contains logic for handling packets containing arbitrary unique item data. Currently this is only for maps. -
handleDoorChange
-
handleServerPing
Handle a server ping packet. -
handleEntityEffect
Handle an entity effect packet. -
handleRemoveEntityEffect
Handle a remove entity effect packet. -
handlePlayerInfo
Handle a player information packet. -
handleDebugInfo
Updates debug infos -
handleGameruleSync
Handle a gamerule server/client sync packet. -
handleKeepAlive
Handle a keep alive packet. -
handleExperience
Handle an experience packet. -
handleCreativeSetSlot
Handle a creative slot packet. -
handleEntityExpOrb
Handle a entity experience orb packet. -
handleEnchantItem
-
handleCustomPayload
-
handleEntityHeadRotation
-
handleTileEntityData
-
handlePlayerAbilities
Handle a player abilities packet. -
handleAutoComplete
-
handleClientInfo
-
handleLevelSound
-
handleBlockDestroy
-
handleClientCommand
-
handleMapChunks
-
canProcessPacketsAsync
public 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. Used to avoid processing packets on the client before the world has been downloaded (which happens on the main thread) -
handleSetObjective
Handle a set objective packet. -
handleSetScore
Handle a set score packet. -
handleSetDisplayObjective
public void handleSetDisplayObjective(Packet208SetDisplayObjective par1Packet208SetDisplayObjective) Handle a set display objective packet. -
handleSetPlayerTeam
Handle a set player team packet. -
handleWorldParticles
Handle a world particles packet. -
handleStartBlockHarvest
-
func_110773_a
-
handlePlayerSync
-
func_142031_a
-
isConnectionClosed
public boolean isConnectionClosed() -
handleTimerSpeed
-
handleHardcoreSpawnSync
-