Skip to content

Commit 2040a9a

Browse files
Updated Upstream (Paper & Tuinity)
Upstream has released updates that appear to apply and compile correctly Paper Changes: 8fe5611 Fix Player#playerListName nullability annotation (#6089) 8827886 Add back linking to Adventure Javadoc (#6088) 6ea4da4 AbstractSkeleton should extend RangedEntity (#6087) a831634 add Optimize Light Engine patch (#5863) 56fd1a2 Update to Minecraft 1.17.1 (#6097) f8d6cbd Deobfuscate stacktraces in sync load info (#6103) Tuinity Changes: 5065deb Make CollisionContext initialisation lazy 388bdf5 Optimise ActivationRange#activateEntities again 2310a94 Update to 1.17.1
1 parent 045bcb4 commit 2040a9a

73 files changed

Lines changed: 19485 additions & 274 deletions

File tree

Some content is hidden

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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = 1.17.1-R0.1-SNAPSHOT
44
mcVersion = 1.17.1
55
packageVersion = 1_17_R1
66

7-
paperCommit = 091319d165bbc311443790aa03ff95a4ccc01780
7+
paperCommit = f8d6cbdfe50fb003389d1ffd2e910caa54e4a006
88

99
org.gradle.parallel = true
1010
org.gradle.vfs.watch = false

patches/api/0001-Tuinity-API-Changes.patch

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,106 @@ index f05edac8cdd33daaf1d15a526be4d2ac2b08846d..8776b8368d2046dee02e927de8249030
3535
/**
3636
* Sends the component to the player
3737
*
38+
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
39+
index 8ae9198ba7fdb006dc420504a984627add20dbb5..4017cc64532a9a8e42c3a6492878cd96db13fcb3 100644
40+
--- a/src/main/java/org/bukkit/World.java
41+
+++ b/src/main/java/org/bukkit/World.java
42+
@@ -3639,6 +3639,26 @@ public interface World extends PluginMessageRecipient, Metadatable, net.kyori.ad
43+
* @param viewDistance view distance in [2, 32]
44+
*/
45+
void setNoTickViewDistance(int viewDistance);
46+
+
47+
+ // Tuinity start - add view distances
48+
+ /**
49+
+ * Gets the sending view distance for this world.
50+
+ * <p>
51+
+ * Sending view distance is the view distance where chunks will load in for players in this world.
52+
+ * </p>
53+
+ * @return The sending view distance for this world.
54+
+ */
55+
+ public int getSendViewDistance();
56+
+
57+
+ /**
58+
+ * Sets the sending view distance for this world.
59+
+ * <p>
60+
+ * Sending view distance is the view distance where chunks will load in for players in this world.
61+
+ * </p>
62+
+ * @param viewDistance view distance in [2, 32] or -1
63+
+ */
64+
+ public void setSendViewDistance(int viewDistance);
65+
+ // Tuinity end - add view distances
66+
// Paper end - view distance api
67+
68+
// Spigot start
69+
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
70+
index 37ad0c478b83ecf63edfe62b5b2dcd81d6fe1e77..252f6220f7cb8dd4bf9c19ec4079819e5b052f44 100644
71+
--- a/src/main/java/org/bukkit/entity/Player.java
72+
+++ b/src/main/java/org/bukkit/entity/Player.java
73+
@@ -1818,23 +1818,63 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
74+
* Gets the view distance for this player
75+
*
76+
* @return the player's view distance
77+
- * @deprecated This is unimplemented and <i>will</i> throw an exception at runtime. The {@link org.bukkit.World World}-based methods still work.
78+
+ * // Tuinity - implemented
79+
* @see org.bukkit.World#getViewDistance()
80+
* @see org.bukkit.World#getNoTickViewDistance()
81+
*/
82+
- @Deprecated
83+
+ //@Deprecated // Tuinity - implemented
84+
public int getViewDistance();
85+
86+
/**
87+
* Sets the view distance for this player
88+
*
89+
* @param viewDistance the player's view distance
90+
- * @deprecated This is unimplemented and <i>will</i> throw an exception at runtime. The {@link org.bukkit.World World}-based methods still work.
91+
+ * // Tuinity - implemented
92+
* @see org.bukkit.World#setViewDistance(int)
93+
* @see org.bukkit.World#setNoTickViewDistance(int)
94+
*/
95+
- @Deprecated
96+
+ //@Deprecated // Tuinity - implemented
97+
public void setViewDistance(int viewDistance);
98+
+
99+
+ // Tuinity start - add view distances api
100+
+ /**
101+
+ * Gets the no-ticking view distance for this player.
102+
+ * <p>
103+
+ * No-tick view distance is the view distance where chunks will load, however the chunks and their entities will not
104+
+ * be set to tick.
105+
+ * </p>
106+
+ * @return The no-tick view distance for this player.
107+
+ */
108+
+ public int getNoTickViewDistance();
109+
+
110+
+ /**
111+
+ * Sets the no-ticking view distance for this player.
112+
+ * <p>
113+
+ * No-tick view distance is the view distance where chunks will load, however the chunks and their entities will not
114+
+ * be set to tick.
115+
+ * </p>
116+
+ * @param viewDistance view distance in [2, 32] or -1
117+
+ */
118+
+ public void setNoTickViewDistance(int viewDistance);
119+
+
120+
+ /**
121+
+ * Gets the sending view distance for this player.
122+
+ * <p>
123+
+ * Sending view distance is the view distance where chunks will load in for players.
124+
+ * </p>
125+
+ * @return The sending view distance for this player.
126+
+ */
127+
+ public int getSendViewDistance();
128+
+
129+
+ /**
130+
+ * Sets the sending view distance for this player.
131+
+ * <p>
132+
+ * Sending view distance is the view distance where chunks will load in for players.
133+
+ * </p>
134+
+ * @param viewDistance view distance in [2, 32] or -1
135+
+ */
136+
+ public void setSendViewDistance(int viewDistance);
137+
+ // Tuinity end - add view distances api
138+
// Paper end
139+
140+
/**

patches/api/0009-AFK-API.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@ index 0000000000000000000000000000000000000000..0c8b3e5e4ba412624357ea5662a78862
8181
+ }
8282
+}
8383
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
84-
index 37ad0c478b83ecf63edfe62b5b2dcd81d6fe1e77..40782217f40146e2509e7808d7b354269a56dc1c 100644
84+
index 252f6220f7cb8dd4bf9c19ec4079819e5b052f44..303dbf3696a7d56b2def1beb485344e81e781857 100644
8585
--- a/src/main/java/org/bukkit/entity/Player.java
8686
+++ b/src/main/java/org/bukkit/entity/Player.java
87-
@@ -2126,4 +2126,25 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
87+
@@ -2166,4 +2166,25 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
8888
@Override
8989
Spigot spigot();
9090
// Spigot end

patches/api/0018-Player-invulnerabilities.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Player invulnerabilities
55

66

77
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
8-
index 40782217f40146e2509e7808d7b354269a56dc1c..d212021efd579bf5a527b6ef923279b055eb7754 100644
8+
index 303dbf3696a7d56b2def1beb485344e81e781857..de106cc1a3352948763b2106bb0a0dd8c40ce619 100644
99
--- a/src/main/java/org/bukkit/entity/Player.java
1010
+++ b/src/main/java/org/bukkit/entity/Player.java
11-
@@ -2146,5 +2146,26 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
11+
@@ -2186,5 +2186,26 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
1212
* Reset the idle timer back to 0
1313
*/
1414
void resetIdleTimer();

patches/api/0032-Fix-javadoc-warnings-missing-param-and-return.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -949,10 +949,10 @@ index a6a7429ed2e1eefb2b12b7480ed74fcc3963a864..e8027e1d505dda6effbb1698550016e8
949949

950950
NORMAL(false),
951951
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
952-
index d212021efd579bf5a527b6ef923279b055eb7754..bc03bbf9fa61b98bc6c208ab4a0e653f4b0ea472 100644
952+
index de106cc1a3352948763b2106bb0a0dd8c40ce619..340cc1a5cf22e26617bc60d39902e585494ab1d5 100644
953953
--- a/src/main/java/org/bukkit/entity/Player.java
954954
+++ b/src/main/java/org/bukkit/entity/Player.java
955-
@@ -1948,6 +1948,8 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
955+
@@ -1988,6 +1988,8 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
956956
void resetCooldown();
957957

958958
/**
@@ -961,7 +961,7 @@ index d212021efd579bf5a527b6ef923279b055eb7754..bc03bbf9fa61b98bc6c208ab4a0e653f
961961
* @return the client option value of the player
962962
*/
963963
@NotNull
964-
@@ -1987,6 +1989,9 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
964+
@@ -2027,6 +2029,9 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
965965
// Paper end
966966

967967
// Spigot start

patches/api/0042-Flying-Fall-Damage-API.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ Subject: [PATCH] Flying Fall Damage API
55

66

77
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java
8-
index 5bb39f78a7e87dddc38b1a641438ebcc2de945b7..87d036d914fc2ca9b3056d7c5103d2e1ceb6e51e 100644
8+
index f6fda238033ec63bb0727824c4d51cd49723e427..407755298456cf1c7081ec8bb2fd2936f36b9404 100644
99
--- a/src/main/java/org/bukkit/entity/Player.java
1010
+++ b/src/main/java/org/bukkit/entity/Player.java
11-
@@ -2172,5 +2172,19 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
11+
@@ -2212,5 +2212,19 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM
1212
* @param invulnerableTicks Invulnerable ticks remaining
1313
*/
1414
void setSpawnInvulnerableTicks(int invulnerableTicks);

0 commit comments

Comments
 (0)