Advertisement
BHOPPEDD

Untitled

Jun 19th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. package xyz.bhopped.trend.events;
  2.  
  3. import com.darkmagician6.eventapi.events.callables.*;
  4. import net.minecraft.client.entity.*;
  5.  
  6. public class UpdateEvent extends EventCancellable
  7. {
  8. public boolean alwaysSend;
  9. public double y;
  10. public float yaw;
  11. public float pitch;
  12. public boolean onGround;
  13. public byte type;
  14. public EntityPlayerSP player;
  15. public boolean pre;
  16. public boolean ground;
  17. private boolean onground;
  18.  
  19. public UpdateEvent(final double y, final float[] rot, final boolean onGround, final EntityPlayerSP player) {
  20. this.y = y;
  21. this.yaw = rot[0];
  22. this.pitch = rot[1];
  23. this.onGround = onGround;
  24. this.player = player;
  25. this.type = 0;
  26. this.onground = this.ground;
  27. this.ground = this.ground;
  28. }
  29.  
  30. public boolean ground() {
  31. return this.ground;
  32. }
  33.  
  34. public boolean shouldAlwaysSend() {
  35. return this.alwaysSend;
  36. }
  37.  
  38. public void ground(final boolean newGround) {
  39. this.ground = newGround;
  40. }
  41.  
  42. public double getY() {
  43. return this.y;
  44. }
  45.  
  46. public void setY(final double y) {
  47. this.y = y;
  48. }
  49.  
  50. public void setGround(final boolean ground) {
  51. this.onground = ground;
  52. }
  53.  
  54. public UpdateEvent() {
  55. this.type = 2;
  56. }
  57.  
  58. public boolean isPre() {
  59. return this.pre;
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement