SPIGOT-7919: Add API to access current player input
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -13,6 +13,7 @@ import org.bukkit.BanEntry;
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.Effect;
|
||||
import org.bukkit.GameMode;
|
||||
import org.bukkit.Input;
|
||||
import org.bukkit.Instrument;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
@@ -503,6 +504,18 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
|
||||
@ApiStatus.Experimental
|
||||
public Collection<EnderPearl> getEnderPearls();
|
||||
|
||||
/**
|
||||
* Gets the current movement input, as last provided by the player.
|
||||
* <br>
|
||||
* <b>Note: that this may not always be consistent with the current movement
|
||||
* of the player.</b>
|
||||
*
|
||||
* @return current input
|
||||
*/
|
||||
@NotNull
|
||||
@ApiStatus.Experimental
|
||||
public Input getCurrentInput();
|
||||
|
||||
/**
|
||||
* Play a note for the player at a location. <br>
|
||||
* This <i>will</i> work with cake.
|
||||
|
||||
Reference in New Issue
Block a user