Package net.minecraft.src
Class Packet1Login
java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet1Login
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe player's entity IDbyteThe difficulty setting byte.int-1: The Nether, 0: The Overworld, 1: The EndbooleanbyteThe maximum players.byteDefaults to 128Fields inherited from class net.minecraft.src.Packet
creationTimeMillis, field_98193_m, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize -
Constructor Summary
ConstructorsConstructorDescriptionPacket1Login(int par1, WorldType par2WorldType, EnumGameType par3EnumGameType, boolean par4, int par5, int par6, int par7, int par8) -
Method Summary
Modifier and TypeMethodDescriptionintAbstract.voidprocessPacket(NetHandler par1NetHandler) Passes this Packet on to the NetHandler for processing.voidreadPacketData(DataInput par1DataInput) Abstract.voidwritePacketData(DataOutput par1DataOutput) Abstract.Methods inherited from class net.minecraft.src.Packet
addIdClassMapping, canProcessAsync, containsSameEntityIDAs, getNewPacket, getPacketId, isRealPacket, readBytesFromStream, readItemStack, readNBTTagCompound, readPacket, readString, toString, writeByteArray, writeItemStack, writeNBTTagCompound, writePacket, writeString
-
Field Details
-
clientEntityId
public int clientEntityIdThe player's entity ID -
terrainType
-
hardcoreMode
public boolean hardcoreMode -
gameType
-
dimension
public int dimension-1: The Nether, 0: The Overworld, 1: The End -
difficultySetting
public byte difficultySettingThe difficulty setting byte. -
worldHeight
public byte worldHeightDefaults to 128 -
maxPlayers
public byte maxPlayersThe maximum players.
-
-
Constructor Details
-
Packet1Login
public Packet1Login() -
Packet1Login
public Packet1Login(int par1, WorldType par2WorldType, EnumGameType par3EnumGameType, boolean par4, int par5, int par6, int par7, int par8)
-
-
Method Details
-
readPacketData
Abstract. Reads the raw packet data from the data stream.- Specified by:
readPacketDatain classPacket- Throws:
IOException
-
writePacketData
Abstract. Writes the raw packet data to the data stream.- Specified by:
writePacketDatain classPacket- Throws:
IOException
-
processPacket
Passes this Packet on to the NetHandler for processing.- Specified by:
processPacketin classPacket
-
getPacketSize
public int getPacketSize()Abstract. Return the size of the packet (not counting the header).- Specified by:
getPacketSizein classPacket
-