mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 15:00:13 +01:00
Deprecate origin for vibrations (#7898)
This commit is contained in:
parent
130e8c090b
commit
01cf853f91
1 changed files with 31 additions and 0 deletions
|
@ -183,6 +183,37 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
ScoreboardManager getScoreboardManager();
|
||||
|
||||
/**
|
||||
diff --git a/src/main/java/org/bukkit/Vibration.java b/src/main/java/org/bukkit/Vibration.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/Vibration.java
|
||||
+++ b/src/main/java/org/bukkit/Vibration.java
|
||||
@@ -0,0 +0,0 @@ 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, @NotNull int arrivalTime) {
|
||||
this.origin = origin;
|
||||
this.destination = destination;
|
||||
@@ -0,0 +0,0 @@ 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;
|
||||
}
|
||||
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||
--- a/src/main/java/org/bukkit/World.java
|
||||
|
|
Loading…
Reference in a new issue