It doesn't seem like it would work, it doesn't reference the Minecraft instance. If it were to exist it would probably use Minecraft.getInstance() for the input, otherwise I don't think it would make sense, I went over the docs for Minecraft.getInstance().player but I couldn't find anything useful, only setting the rotation and getting the position, I can't find anything for inputs, maybe the only thing I could find is the keys for the player's set controls, but even with that there isn't a way that I know of that could use those keys to make an input onto the client, or register an input.