Fix Spigot annotation mistakes

while some of these may of been true, they are extreme cases and cause
a ton of noise to plugin developers.

Use ApiStatus.Internal instead of Deprecated for actual internal API
that continues to have use (internally).

These do not help plugin developers if they bring moise noise than value.
This commit is contained in:
Aikar
2019-03-24 18:39:01 -04:00
parent ded424db46
commit 2825ece820
145 changed files with 372 additions and 235 deletions

View File

@@ -13,6 +13,14 @@ public class Vibration {
private final Destination destination;
private final int arrivalTime;
// Paper start
public Vibration(@NotNull Destination destination, @NotNull int arrivalTime) {
this.destination = destination;
this.arrivalTime = arrivalTime;
this.origin = new Location(null, 0, 0, 0); // Dummy origin because getter expects null
}
@Deprecated(forRemoval = true) // Paper end
public Vibration(@NotNull Location origin, @NotNull Destination destination, int arrivalTime) {
this.origin = origin;
this.destination = destination;
@@ -22,9 +30,11 @@ public class Vibration {
/**
* Get the origin of the vibration.
*
* @deprecated unused as of 1.19
* @return origin
*/
@NotNull
@Deprecated(forRemoval = true) // Paper
public Location getOrigin() {
return origin;
}