Commits

Thinkofname authored ad385cd3f6e
Deprecate HorseJumpEvent's setPower and setCancelled methods
No tags

src/main/java/org/bukkit/event/entity/HorseJumpEvent.java

Modified
14 14
15 15 public HorseJumpEvent(final Horse horse, final float power) {
16 16 super(horse);
17 17 this.power = power;
18 18 }
19 19
20 20 public boolean isCancelled() {
21 21 return cancelled;
22 22 }
23 23
24 + /**
25 + * @deprecated horse jumping was moved client side.
26 + */
27 + @Deprecated
24 28 public void setCancelled(boolean cancel) {
25 29 cancelled = cancel;
26 30 }
27 31
28 32 @Override
29 33 public Horse getEntity() {
30 34 return (Horse) entity;
31 35 }
32 36
33 37 /**
55 59 * Sets the power of the jump.
56 60 * <p>
57 61 * Jump power can be set to a value above 1.0 which will increase the
58 62 * strength of this jump above the horse's actual jump strength.
59 63 * <p>
60 64 * Setting the jump power to 0 will result in the jump animation still
61 65 * playing, but the horse not leaving the ground. Only canceling this
62 66 * event will result in no jump animation at all.
63 67 *
64 68 * @param power power of the jump
69 + * @deprecated horse jumping was moved client side.
65 70 */
71 + @Deprecated
66 72 public void setPower(float power) {
67 73 this.power = power;
68 74 }
69 75
70 76 @Override
71 77 public HandlerList getHandlers() {
72 78 return handlers;
73 79 }
74 80
75 81 public static HandlerList getHandlerList() {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut