Skip to content

Commit 3501d4e

Browse files
authored
Merge branch 'PurpurMC:ver/1.20.4' into ver/1.20.4
2 parents 6cfef5f + 3d52f06 commit 3501d4e

204 files changed

Lines changed: 1003 additions & 911 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.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ build-data/
5656
Purpur-API
5757
Purpur-MojangAPI
5858
Purpur-Server
59+
paper-api-generator
5960
*.jar

.idea/runConfigurations/Run_Purpur_Paperclip_Jar.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,23 @@ paperweight {
7676
serverPatchDir = layout.projectDirectory.dir("patches/server")
7777
serverOutputDir = layout.projectDirectory.dir("Purpur-Server")
7878
}
79+
80+
patchTasks.register("generatedApi") {
81+
isBareDirectory = true
82+
upstreamDirPath = "paper-api-generator/generated"
83+
patchDir = layout.projectDirectory.dir("patches/generated-api")
84+
outputDir = layout.projectDirectory.dir("paper-api-generator/generated")
85+
}
7986
}
8087
}
8188

8289
tasks.generateDevelopmentBundle {
8390
apiCoordinates = "org.purpurmc.purpur:purpur-api"
8491
mojangApiCoordinates = "io.papermc.paper:paper-mojangapi"
85-
libraryRepositories.set(
86-
listOf(
87-
"https://repo.maven.apache.org/maven2/",
88-
paperMavenPublicUrl,
89-
"https://repo.purpurmc.org/snapshots",
90-
)
92+
libraryRepositories = listOf(
93+
"https://repo.maven.apache.org/maven2/",
94+
paperMavenPublicUrl,
95+
"https://repo.purpurmc.org/snapshots",
9196
)
9297
}
9398

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ group = org.purpurmc.purpur
22
version = 1.20.4-R0.1-SNAPSHOT
33

44
mcVersion = 1.20.4
5-
paperCommit = a58e29db993120e8cb625b63ada06e2638ff2ac2
5+
paperCommit = 94807a1d2e74b26b1a3154974d4024daa4c95f51
66

77
org.gradle.caching = true
88
org.gradle.parallel = true

patches/api/0007-Ridables.patch

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,6 @@ Date: Sat, 4 May 2019 00:57:16 -0500
44
Subject: [PATCH] Ridables
55

66

7-
diff --git a/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java b/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
8-
index 0c4dbb9ef63fa8575b5546239443cb2bd91ba847..4160e968e7d7e8e2a953534a981a7330916ece2e 100644
9-
--- a/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
10-
+++ b/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
11-
@@ -198,6 +198,12 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
12-
GoalKey<Mob> CLIMB_ON_TOP_OF_POWDER_SNOW = GoalKey.of(Mob.class, NamespacedKey.minecraft("climb_on_top_of_powder_snow"));
13-
GoalKey<Wolf> WOLF_PANIC = GoalKey.of(Wolf.class, NamespacedKey.minecraft("wolf_panic"));
14-
15-
+ // Purpur start
16-
+ GoalKey<Mob> MOB_HAS_RIDER = GoalKey.of(Mob.class, NamespacedKey.minecraft("has_rider"));
17-
+ GoalKey<AbstractHorse> HORSE_HAS_RIDER = GoalKey.of(AbstractHorse.class, NamespacedKey.minecraft("horse_has_rider"));
18-
+ GoalKey<Llama> LLAMA_HAS_RIDER = GoalKey.of(Llama.class, NamespacedKey.minecraft("llama_has_rider"));
19-
+ // Purpur end
20-
+
21-
/**
22-
* @deprecated removed in 1.20.2
23-
*/
247
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
258
index 1d0fd7ff8449f815a7d980af0b378181ea8bf8d8..566c74756c66db859a4f738a7716a61d012c6df1 100644
269
--- a/src/main/java/org/bukkit/entity/Entity.java

patches/api/0020-LivingEntity-broadcastItemBreak.patch renamed to patches/api/0018-LivingEntity-broadcastItemBreak.patch

File renamed without changes.
File renamed without changes.

patches/api/0023-Add-predicate-to-recipe-s-ExactChoice-ingredient.patch renamed to patches/api/0021-Add-predicate-to-recipe-s-ExactChoice-ingredient.patch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Subject: [PATCH] Add predicate to recipe's ExactChoice ingredient
55

66

77
diff --git a/src/main/java/org/bukkit/inventory/RecipeChoice.java b/src/main/java/org/bukkit/inventory/RecipeChoice.java
8-
index 523818cbb0d6c90481ec97123e7fe0e2ff4eea14..bfeb8171a723d84b94bfaacd8aaf7d4d48ecd051 100644
8+
index db8bcc66bdc4bedfffb4705db6338eda4c0ad29a..feda3ddfaaf37b6ee218a0e0b1fbc199899bd364 100644
99
--- a/src/main/java/org/bukkit/inventory/RecipeChoice.java
1010
+++ b/src/main/java/org/bukkit/inventory/RecipeChoice.java
1111
@@ -10,6 +10,7 @@ import java.util.function.Predicate;
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ Date: Tue, 8 Dec 2020 17:15:15 -0500
44
Subject: [PATCH] Rabid Wolf API
55

66

7-
diff --git a/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java b/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
8-
index ce2eb58b86cd638d91f2bf9a8da60db499685fc9..8671b9042df2e219921615144a6ca868fa346d77 100644
9-
--- a/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
10-
+++ b/src/main/java/com/destroystokyo/paper/entity/ai/VanillaGoal.java
11-
@@ -206,6 +206,7 @@ public interface VanillaGoal<T extends Mob> extends Goal<T> {
12-
GoalKey<Phantom> ORBIT_CRYSTAL = GoalKey.of(Phantom.class, NamespacedKey.minecraft("orbit_crystal"));
13-
GoalKey<Drowned> DROWNED_ATTACK_VILLAGER = GoalKey.of(Drowned.class, NamespacedKey.minecraft("drowned_attack_villager"));
14-
GoalKey<Zombie> ZOMBIE_ATTACK_VILLAGER = GoalKey.of(Zombie.class, NamespacedKey.minecraft("zombie_attack_villager"));
15-
+ GoalKey<Wolf> AVOID_RABID_WOLF = GoalKey.of(Wolf.class, NamespacedKey.minecraft("avoid_rabid_wolf"));
16-
// Purpur end
17-
18-
/**
197
diff --git a/src/main/java/org/bukkit/entity/Wolf.java b/src/main/java/org/bukkit/entity/Wolf.java
208
index 84db38388bf7a58e66d6cd29620b4fe64b0a897e..82ebd99549ce9f9e6427a50cef424e9007735708 100644
219
--- a/src/main/java/org/bukkit/entity/Wolf.java
File renamed without changes.

0 commit comments

Comments
 (0)