Package net.minecraft.src
Class Packet63WorldParticles
java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet63WorldParticles
-
Field Summary
Fields inherited from class net.minecraft.src.Packet
creationTimeMillis, field_98193_m, isChunkDataPacket, packetIdToClassMap, receivedID, receivedSize, sentID, sentSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatThis is added to the X position after being multiplied by random.nextGaussian()floatThis is added to the Y position after being multiplied by random.nextGaussian()floatThis is added to the Z position after being multiplied by random.nextGaussian()intAbstract.doubleGets the X position of the particle.doubleGets the Y position of the particle.doubleGets the Z position of the particle.intGets the number of particles to create.floatgetSpeed()Gets the speed of the particles.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
-
Constructor Details
-
Packet63WorldParticles
public Packet63WorldParticles()
-
-
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
-
getParticleName
-
getPositionX
public double getPositionX()Gets the X position of the particle. -
getPositionY
public double getPositionY()Gets the Y position of the particle. -
getPositionZ
public double getPositionZ()Gets the Z position of the particle. -
getOffsetX
public float getOffsetX()This is added to the X position after being multiplied by random.nextGaussian() -
getOffsetY
public float getOffsetY()This is added to the Y position after being multiplied by random.nextGaussian() -
getOffsetZ
public float getOffsetZ()This is added to the Z position after being multiplied by random.nextGaussian() -
getSpeed
public float getSpeed()Gets the speed of the particles. -
getQuantity
public int getQuantity()Gets the number of particles to create. -
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
-