Class SpawnMobMessage

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

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

    • SpawnMobMessage

      public SpawnMobMessage(int id, UUID uuid, int type, org.bukkit.Location location, List<MetadataMap.Entry> metadata)
      Creates an instance based on a Location, with headPitch equal to pitch and with zero velocity.
      Parameters:
      id - the mob's ID within the world
      uuid - the mob's UUID
      type - the mob's network type ID
      location - the mob's position, pitch and yaw
      metadata - the mob's metadata
    • SpawnMobMessage

      public SpawnMobMessage(int id, UUID uuid, int type, double x, double y, double z, int rotation, int pitch, int headPitch, int velX, int velY, int velZ, List<MetadataMap.Entry> metadata)
  • Method Details

    • getId

      public int getId()
    • getUuid

      public UUID getUuid()
    • getType

      public int getType()
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getRotation

      public int getRotation()
    • getPitch

      public int getPitch()
    • getHeadPitch

      public int getHeadPitch()
    • getVelX

      public int getVelX()
    • getVelY

      public int getVelY()
    • getVelZ

      public int getVelZ()
    • getMetadata

      public List<MetadataMap.Entry> getMetadata()
    • 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