Class EntityMoveEvent
java.lang.Object
com.welcome234.pluginsystem.events.EntityMoveEvent
Called when an entity moves
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the entity who has moveddoubleGets the X coordinate the entity has moved todoubleGets the Y coordinate the entity has moved tobooleanGets whether this event is cancelledvoidsetCancelled(boolean cancelled)Sets the cancellation status of this event
-
Constructor Details
-
EntityMoveEvent
public EntityMoveEvent(int entityID, double movedX, double movedY)
-
-
Method Details
-
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
-