Package net.minecraft.src
Class Packet15Place
java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet15Place
-
Field Summary
Fields inherited from class net.minecraft.src.Packet
creationTimeMillis, field_98193_m, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize -
Constructor Summary
ConstructorsConstructorDescriptionPacket15Place(int x, int y, int z, int par4, ItemStack par5ItemStack, float par6, float par7, float par8) -
Method Summary
Modifier and TypeMethodDescriptionintintAbstract.floatReturns the offset from xPosition where the actual click took placeintfloatReturns the offset from yPosition where the actual click took placeintfloatReturns the offset from zPosition where the actual click took placeintvoidprocessPacket(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
-
Constructor Details
-
Packet15Place
public Packet15Place() -
Packet15Place
@Environment(CLIENT) public Packet15Place(int x, int y, int z, int par4, ItemStack par5ItemStack, float par6, float par7, float 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
-
getXPosition
public int getXPosition() -
getYPosition
public int getYPosition() -
getZPosition
public int getZPosition() -
getDirection
public int getDirection() -
getItemStack
-
getXOffset
public float getXOffset()Returns the offset from xPosition where the actual click took place -
getYOffset
public float getYOffset()Returns the offset from yPosition where the actual click took place -
getZOffset
public float getZOffset()Returns the offset from zPosition where the actual click took place
-