Class VehicleMoveMessage

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

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

    • VehicleMoveMessage

      public VehicleMoveMessage(double x, double y, double z, float yaw, float pitch)
      Creates a message.
      Parameters:
      x - the X coordinate
      y - the Y coordinate
      z - the Z coordinate
      yaw - the yaw angle
      pitch - the pitch angle
  • Method Details

    • update

      public void update(org.bukkit.Location location)
      Copies this message's position and orientation to a Location.
      Parameters:
      location - the location to update
    • getX

      public double getX()
    • getY

      public double getY()
    • getZ

      public double getZ()
    • getYaw

      public float getYaw()
    • getPitch

      public float getPitch()
    • equals

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

      protected boolean canEqual(Object other)
    • 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