Class EntityMoveEvent

java.lang.Object
com.welcome234.pluginsystem.events.EntityMoveEvent

public class EntityMoveEvent extends Object
Called when an entity moves
  • Constructor Details

    • EntityMoveEvent

      public EntityMoveEvent(int entityID, double movedX, double movedY)
  • Method Details

    • getEntity

      public Entity getEntity()
      Gets the entity who has moved
      Returns:
      Entity instance
    • getMovedX

      public double getMovedX()
      Gets the X coordinate the entity has moved to
      Returns:
      X-coordinate
    • getMovedY

      public double getMovedY()
      Gets the Y coordinate the entity has moved to
      Returns:
      Y-coordinate
    • isCancelled

      public boolean isCancelled()
      Gets whether this event is cancelled
      Returns:
      Whether cancelled
    • setCancelled

      public void setCancelled(boolean cancelled)
      Sets the cancellation status of this event
      Parameters:
      cancelled - Whether cancelled