mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
#603: Specify what velocity changes in javadocs
This commit is contained in:
parent
6bff9d0996
commit
dd8edaa7ab
4 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
|||
public Location getLocation(@Nullable Location loc);
|
||||
|
||||
/**
|
||||
* Sets this entity's velocity
|
||||
* Sets this entity's velocity in meters per tick
|
||||
*
|
||||
* @param velocity New velocity to travel with
|
||||
*/
|
||||
|
|
|
@ -18,7 +18,7 @@ public interface Vehicle extends Entity {
|
|||
public Vector getVelocity();
|
||||
|
||||
/**
|
||||
* Sets the vehicle's velocity.
|
||||
* Sets the vehicle's velocity in meters per tick.
|
||||
*
|
||||
* @param vel velocity vector
|
||||
*/
|
||||
|
|
|
@ -47,7 +47,7 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Gets the velocity.
|
||||
* Gets the velocity in meters per tick.
|
||||
* <p>
|
||||
* Note: Modifying the returned Vector will not change the velocity, you
|
||||
* must use {@link #setVelocity(org.bukkit.util.Vector)} instead.
|
||||
|
@ -60,7 +60,7 @@ public class BlockDispenseEvent extends BlockEvent implements Cancellable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the velocity of the item being dispensed.
|
||||
* Sets the velocity of the item being dispensed in meters per tick.
|
||||
*
|
||||
* @param vel the velocity of the item being dispensed
|
||||
*/
|
||||
|
|
|
@ -40,7 +40,7 @@ public class PlayerVelocityEvent extends PlayerEvent implements Cancellable {
|
|||
}
|
||||
|
||||
/**
|
||||
* Sets the velocity vector that will be sent to the player
|
||||
* Sets the velocity vector in meters per tick that will be sent to the player
|
||||
*
|
||||
* @param velocity The velocity vector that will be sent to the player
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue