Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sleeping pose #98

Open
iamgio opened this issue Jul 1, 2020 · 1 comment
Open

Sleeping pose #98

iamgio opened this issue Jul 1, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@iamgio
Copy link

iamgio commented Jul 1, 2020

Hello, it would be awesome to have the "sleeping" pose implemented into the API:

Method setPose = Entity.class.getDeclaredMethod("setPose", EntityPose.class);
setPose.setAccessible(true);
setPose.invoke(npc, EntityPose.SLEEPING);
connection.sendPacket(new PacketPlayOutEntityMetadata(npc.getId(), npc.getDataWatcher(), false));
@JitseB
Copy link
Owner

JitseB commented Jul 14, 2020

That... is a lot easier than I thought it would be. I'll implement this for the next version of NPCLib! :)

@JitseB JitseB added the enhancement New feature or request label Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants