Class SpawnObjectMessage

java.lang.Object
net.glowstone.net.message.play.entity.SpawnObjectMessage
All Implemented Interfaces:
com.flowpowered.network.Message

public final class SpawnObjectMessage extends Object implements com.flowpowered.network.Message
  • Constructor Details

    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw)
    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data)
    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, org.bukkit.Location location)
      Create an instance based on a location.
      Parameters:
      id - the entity id
      uuid - the entity UUID
      type - the network ID of the entity type
      location - The location whose x, y, z, pitch and yaw will be used
    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, org.bukkit.Location location, int data)
      Create an instance based on a location.
      Parameters:
      id - the entity id
      uuid - the entity UUID
      type - the network ID of the entity type
      location - the location whose x, y, z, pitch and yaw will be used
      data - as defined by the entity type
    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, org.bukkit.util.Vector vector)
    • SpawnObjectMessage

      public SpawnObjectMessage(int id, UUID uuid, int type, double x, double y, double z, int pitch, int yaw, int data, int velX, int velY, int velZ)
  • Method Details

    • hasData

      public boolean hasData()
    • getId

      public int getId()
    • getUuid

      public UUID getUuid()
    • getType

      public int getType()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getPitch

      public int getPitch()
    • getYaw

      public int getYaw()
    • getData

      public int getData()
    • getVelX

      public int getVelX()
    • getVelY

      public int getVelY()
    • getVelZ

      public int getVelZ()
    • equals

      public boolean equals(Object o)
      Specified by:
      equals in interface com.flowpowered.network.Message
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.flowpowered.network.Message
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Specified by:
      toString in interface com.flowpowered.network.Message
      Overrides:
      toString in class Object