[SPIGOT-7919] Added a the field in the Player sub-predicate "input" Created: 22/Oct/24  Updated: 25/Dec/24  Resolved: 22/Oct/24

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Eisbaer Shirokuma Assignee: md_5
Resolution: Fixed Votes: 0
Labels: None

Version: 4345-Spigot-a084d85-459c38a
Guidelines Read: Yes

 Description   

In 24w36a is this feature added in vanilla minecraft

it supports detecting the following input: forward : boolean (optional) backward : boolean (optional) left : boolean (optional) right : boolean (optional) jump : boolean (optional) sneak : boolean (optional) sprint : boolean (optional) 



 Comments   
Comment by md_5 [ 22/Oct/24 ]

Should probably actually be an "Input getCurrentInput" with an isLeft(), isRight(), isForward() etc in the interface

Comment by Doc [ 22/Oct/24 ]

Maybe a Player#isInputActive?

Comment by Eisbaer Shirokuma [ 22/Oct/24 ]

Yes

 

Comment by md_5 [ 22/Oct/24 ]

Are you asking for, eg, a Player.isForward method?

Generated at Mon Mar 24 19:04:06 UTC 2025 using Jira 10.3.3#10030003-sha1:d220e3fefc8dfc6d47f522d3b9a20c1455e12b7b.