Class Packet23VehicleSpawn

java.lang.Object
net.minecraft.src.Packet
net.minecraft.src.Packet23VehicleSpawn

public class Packet23VehicleSpawn extends Packet
  • Field Details

    • entityId

      public int entityId
      Entity ID of the object.
    • xPosition

      public int xPosition
      The X position of the object.
    • yPosition

      public int yPosition
      The Y position of the object.
    • zPosition

      public int zPosition
      The Z position of the object.
    • speedX

      public int speedX
      Not sent if the thrower entity ID is 0. The speed of this fireball along the X axis.
    • speedY

      public int speedY
      Not sent if the thrower entity ID is 0. The speed of this fireball along the Y axis.
    • speedZ

      public int speedZ
      Not sent if the thrower entity ID is 0. The speed of this fireball along the Z axis.
    • pitch

      public int pitch
      The pitch in steps of 2p/256
    • yaw

      public int yaw
      The yaw in steps of 2p/256
    • type

      public int type
      The type of object.
    • throwerEntityId

      public int throwerEntityId
      0 if not a fireball. Otherwise, this is the Entity ID of the thrower.
  • Constructor Details

    • Packet23VehicleSpawn

      public Packet23VehicleSpawn()
    • Packet23VehicleSpawn

      public Packet23VehicleSpawn(Entity par1Entity, int par2)
    • Packet23VehicleSpawn

      public Packet23VehicleSpawn(Entity par1Entity, int par2, int par3)
  • Method Details

    • readPacketData

      public void readPacketData(DataInput par1DataInput) throws IOException
      Abstract. Reads the raw packet data from the data stream.
      Specified by:
      readPacketData in class Packet
      Throws:
      IOException
    • writePacketData

      public void writePacketData(DataOutput par1DataOutput) throws IOException
      Abstract. Writes the raw packet data to the data stream.
      Specified by:
      writePacketData in class Packet
      Throws:
      IOException
    • processPacket

      public void processPacket(NetHandler par1NetHandler)
      Passes this Packet on to the NetHandler for processing.
      Specified by:
      processPacket in class Packet
    • getPacketSize

      public int getPacketSize()
      Abstract. Return the size of the packet (not counting the header).
      Specified by:
      getPacketSize in class Packet