Skip to content

Commit ffe310a

Browse files
committed
remove api that was scheduled for removal
1 parent 188cff2 commit ffe310a

File tree

1,196 files changed

+442
-1665
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,196 files changed

+442
-1665
lines changed

patches/api/0006-Adventure.patch

+2-15
Original file line numberDiff line numberDiff line change
@@ -374,10 +374,10 @@ index 0000000000000000000000000000000000000000..01cf89d3558132912c4d0eb48c98cd8c
374374
+}
375375
diff --git a/src/main/java/io/papermc/paper/event/player/AsyncChatDecorateEvent.java b/src/main/java/io/papermc/paper/event/player/AsyncChatDecorateEvent.java
376376
new file mode 100644
377-
index 0000000000000000000000000000000000000000..d4c01e4d332b46f0b129dd5f9e9737ba19923562
377+
index 0000000000000000000000000000000000000000..2e492f4cd179135bd40ad951ab23acb562be2f06
378378
--- /dev/null
379379
+++ b/src/main/java/io/papermc/paper/event/player/AsyncChatDecorateEvent.java
380-
@@ -0,0 +1,118 @@
380+
@@ -0,0 +1,105 @@
381381
+package io.papermc.paper.event.player;
382382
+
383383
+import net.kyori.adventure.text.Component;
@@ -459,19 +459,6 @@ index 0000000000000000000000000000000000000000..d4c01e4d332b46f0b129dd5f9e9737ba
459459
+ this.result = result;
460460
+ }
461461
+
462-
+ /**
463-
+ * If this decorating is part of a preview request/response.
464-
+ *
465-
+ * @return {@code true} if part of previewing
466-
+ * @deprecated chat preview was removed in 1.19.3
467-
+ */
468-
+ @Deprecated(forRemoval = true, since = "1.19.3")
469-
+ @ApiStatus.ScheduledForRemoval(inVersion = "1.21")
470-
+ @Contract(value = "-> false", pure = true)
471-
+ public boolean isPreview() {
472-
+ return false;
473-
+ }
474-
+
475462
+ @Override
476463
+ public boolean isCancelled() {
477464
+ return this.cancelled;

patches/api/0017-Add-PlayerLocaleChangeEvent.patch

-72
This file was deleted.

patches/api/0020-Add-PlayerInitialSpawnEvent.patch

-32
This file was deleted.
File renamed without changes.

patches/api/0054-Expose-WorldBorder-isInBounds-Location-check.patch

-29
This file was deleted.

patches/api/0126-EntityTransformedEvent.patch

-107
This file was deleted.

patches/api/0149-Add-ItemStackRecipeChoice-Draft-API.patch

-67
This file was deleted.
File renamed without changes.
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2+
From: Spottedleaf <[email protected]>
3+
Date: Sat, 1 Dec 2018 19:00:36 -0800
4+
Subject: [PATCH] Add Heightmap API
5+
6+
Changed to use upstream's heightmap API - Machine_Maker
7+
8+
diff --git a/src/main/java/org/bukkit/Location.java b/src/main/java/org/bukkit/Location.java
9+
index eec6c9cd7da6938351905129bb5a66f49a257d01..65618b6b3c950fb27707f243a766511d6cd3aab4 100644
10+
--- a/src/main/java/org/bukkit/Location.java
11+
+++ b/src/main/java/org/bukkit/Location.java
12+
@@ -649,6 +649,30 @@ public class Location implements Cloneable, ConfigurationSerializable, io.paperm
13+
}
14+
// Paper end - expand Location API
15+
16+
+ // Paper start - Add heightmap api
17+
+ /**
18+
+ * Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ())
19+
+ * @return A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ())
20+
+ * @throws NullPointerException if {{@link #getWorld()}} is {@code null}
21+
+ */
22+
+ @NotNull
23+
+ public Location toHighestLocation() {
24+
+ return this.toHighestLocation(HeightMap.WORLD_SURFACE);
25+
+ }
26+
+
27+
+ /**
28+
+ * Returns a copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)
29+
+ * @param heightMap The heightmap to use for finding the highest y location.
30+
+ * @return A copy of this location except with y = getWorld().getHighestBlockYAt(this.getBlockX(), this.getBlockZ(), heightMap)
31+
+ */
32+
+ @NotNull
33+
+ public Location toHighestLocation(@NotNull final HeightMap heightMap) {
34+
+ final Location ret = this.clone();
35+
+ ret.setY(this.getWorld().getHighestBlockYAt(this, heightMap));
36+
+ return ret;
37+
+ }
38+
+ // Paper end - Add heightmap api
39+
+
40+
// Paper start - Expand Explosions API
41+
/**
42+
* Creates explosion at this location with given power

0 commit comments

Comments
 (0)