-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
60d6531
commit 72bd644
Showing
14 changed files
with
105 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
group = cn.dreeam.leaf | ||
mcVersion = 1.21.1 | ||
version = 1.21.1-R0.1-SNAPSHOT | ||
mcVersion = 1.21.3 | ||
version = 1.21.3-R0.1-SNAPSHOT | ||
|
||
galeCommit = 2f4ceb58755838d29427d052244452c5c8a616a7 | ||
galeCommit = abd27587a83632c04b1018976b783425e980b1f2 | ||
|
||
org.gradle.caching = true | ||
org.gradle.parallel = true | ||
org.gradle.vfs.watch = false | ||
org.gradle.jvmargs = -Xmx4G -Dfile.encoding=UTF8 | ||
org.gradle.jvmargs = -Xmx4G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Github Actions <[email protected]> | ||
Date: Fri, 21 Jun 2024 03:34:00 +0000 | ||
Date: Thu, 12 Dec 2024 11:10:02 +0000 | ||
Subject: [PATCH] Purpur API Changes | ||
|
||
Original license: MIT | ||
Original project: https://github.com/PurpurMC/Purpur | ||
|
||
Commit: 803bf624d9e6616b879a16e6ce3c7e196468c577 | ||
Commit: 16ce24aa7eb08232030e4570e027f7baefa5f3f9 | ||
|
||
Patches below are removed in this patch: | ||
Pufferfish-API-Changes.patch | ||
|
@@ -34,10 +34,10 @@ index bef5b7b089f33c8ce1304292804ea56d16e574c9..5873b42c198d7972e4147d019c790b61 | |
/** | ||
* The brand id for Purpur. | ||
diff --git a/src/main/java/org/bukkit/Bukkit.java b/src/main/java/org/bukkit/Bukkit.java | ||
index 3576093460cba9b3ef2cc46b3d4d03eedba5a0f9..ebf04da015cfe394e9c5d3a3c432674df979f93c 100644 | ||
index 2ddaa049b5b14ef7de2899862b3cc69537361b00..2477a560ed345116cd9d4e90f98694b84a1faf28 100644 | ||
--- a/src/main/java/org/bukkit/Bukkit.java | ||
+++ b/src/main/java/org/bukkit/Bukkit.java | ||
@@ -2988,4 +2988,127 @@ public final class Bukkit { | ||
@@ -3035,4 +3035,127 @@ public final class Bukkit { | ||
public static Server.Spigot spigot() { | ||
return server.spigot(); | ||
} | ||
|
@@ -248,13 +248,13 @@ index 918a045165cdcde264bc24082b7afebb407271de..e98d6321c5f2cdde91b54f8a74cbcc04 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java | ||
index 77a15a99e441bd81650806142581bd5b24f30e10..3ec2154956087a370799f0fa485f3b6cae894c69 100644 | ||
index 028ac35df6c4d044d07b3869751736d418c1eb0e..95c1f331f364c5fafa100860f3c9674f18888714 100644 | ||
--- a/src/main/java/org/bukkit/Material.java | ||
+++ b/src/main/java/org/bukkit/Material.java | ||
@@ -5636,4 +5636,40 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla | ||
public BlockType asBlockType() { | ||
return blockType.get(); | ||
@@ -5840,4 +5840,40 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla | ||
return this.asItemType().getDefaultDataTypes(); | ||
} | ||
// Paper end - data component API | ||
+ | ||
+ // Purpur start | ||
+ public boolean isArmor() { | ||
|
@@ -293,7 +293,7 @@ index 77a15a99e441bd81650806142581bd5b24f30e10..3ec2154956087a370799f0fa485f3b6c | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/OfflinePlayer.java b/src/main/java/org/bukkit/OfflinePlayer.java | ||
index a028f2fe541491729856051780b33dba07832fb6..fc64902368a068481f16d5db99c94386caf6b60b 100644 | ||
index 5622fe3165baad8138c22cfc016ed6c3834cf702..6d31b561d915180fcd473b317721064feed28f37 100644 | ||
--- a/src/main/java/org/bukkit/OfflinePlayer.java | ||
+++ b/src/main/java/org/bukkit/OfflinePlayer.java | ||
@@ -573,4 +573,106 @@ public interface OfflinePlayer extends ServerOperator, AnimalTamer, Configuratio | ||
|
@@ -404,10 +404,10 @@ index a028f2fe541491729856051780b33dba07832fb6..fc64902368a068481f16d5db99c94386 | |
+ // Purpur end - OfflinePlayer API | ||
} | ||
diff --git a/src/main/java/org/bukkit/Server.java b/src/main/java/org/bukkit/Server.java | ||
index b1c34f4d44b420930e79dd440328e522b669601f..ab6e3eb18b9c36fdd8f56f491332085aa2ec0c37 100644 | ||
index 597b06c2cb289c235ad14009b186aa00f55cefcd..582c1f053020dff2cde8a1a7a1a760a84e856b7c 100644 | ||
--- a/src/main/java/org/bukkit/Server.java | ||
+++ b/src/main/java/org/bukkit/Server.java | ||
@@ -2318,6 +2318,18 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi | ||
@@ -2336,6 +2336,18 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi | ||
|
||
// Paper end | ||
|
||
|
@@ -426,10 +426,11 @@ index b1c34f4d44b420930e79dd440328e522b669601f..ab6e3eb18b9c36fdd8f56f491332085a | |
// Leaf start | ||
@NotNull | ||
public org.bukkit.configuration.file.YamlConfiguration getLeafConfig() | ||
@@ -2641,4 +2653,104 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi | ||
@@ -2693,4 +2705,105 @@ public interface Server extends PluginMessageRecipient, net.kyori.adventure.audi | ||
*/ | ||
long getLastTickOversleepTime(); | ||
// Gale end - YAPFA - last tick time - API | ||
+ | ||
+ // Purpur start | ||
+ /** | ||
+ * Get the name of this server | ||
|
@@ -532,10 +533,10 @@ index b1c34f4d44b420930e79dd440328e522b669601f..ab6e3eb18b9c36fdd8f56f491332085a | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java | ||
index ef32a937e6faf1e8a5d6b1207986715bae5a246c..36cf567973900d1e472616748926aecb9afcb42f 100644 | ||
index bef54a6c8290e09cbaac20b03dde8dfb902c96b0..5f7de23e419175e55459df760c7190639ea39f18 100644 | ||
--- a/src/main/java/org/bukkit/World.java | ||
+++ b/src/main/java/org/bukkit/World.java | ||
@@ -4209,6 +4209,86 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient | ||
@@ -4246,6 +4246,86 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient | ||
@Nullable | ||
public DragonBattle getEnderDragonBattle(); | ||
|
||
|
@@ -685,7 +686,7 @@ index 5df19bd701c67506689fc7f49d91f99ebfbc83f0..a09b5458191eb5df4787859b72a37fa1 | |
} catch (CommandException ex) { | ||
server.getPluginManager().callEvent(new com.destroystokyo.paper.event.server.ServerExceptionEvent(new com.destroystokyo.paper.exception.ServerCommandException(ex, target, sender, args))); // Paper | ||
diff --git a/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java b/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java | ||
index 455ff52d90565838fe7640c3f045b27082a6c2f1..45f5493eebfecf56b7c0ef4659c078dfc62c0612 100644 | ||
index 6fcc15d588239481136876d117ab346a8deac1dd..13b903e785a9ef5e513cb9d6483482133cc5f25b 100644 | ||
--- a/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java | ||
+++ b/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java | ||
@@ -227,6 +227,28 @@ public enum EnchantmentTarget { | ||
|
@@ -718,7 +719,7 @@ index 455ff52d90565838fe7640c3f045b27082a6c2f1..45f5493eebfecf56b7c0ef4659c078df | |
|
||
/** | ||
diff --git a/src/main/java/org/bukkit/entity/Endermite.java b/src/main/java/org/bukkit/entity/Endermite.java | ||
index 138d2530de2410f4a9424dabd3e5ce0cd1c1dcd2..10a8d64ad2da0be2c14f34c3e7d1957c6f2883d1 100644 | ||
index 7b379fb21e800a766ad022705a12dff6d42279ab..10a8d64ad2da0be2c14f34c3e7d1957c6f2883d1 100644 | ||
--- a/src/main/java/org/bukkit/entity/Endermite.java | ||
+++ b/src/main/java/org/bukkit/entity/Endermite.java | ||
@@ -3,25 +3,21 @@ package org.bukkit.entity; | ||
|
@@ -734,7 +735,7 @@ index 138d2530de2410f4a9424dabd3e5ce0cd1c1dcd2..10a8d64ad2da0be2c14f34c3e7d1957c | |
* @return player spawned status | ||
- * @deprecated this functionality no longer exists | ||
*/ | ||
- @Deprecated | ||
- @Deprecated(since = "1.17") | ||
boolean isPlayerSpawned(); | ||
|
||
/** | ||
|
@@ -747,12 +748,12 @@ index 138d2530de2410f4a9424dabd3e5ce0cd1c1dcd2..10a8d64ad2da0be2c14f34c3e7d1957c | |
* @param playerSpawned player spawned status | ||
- * @deprecated this functionality no longer exists | ||
*/ | ||
- @Deprecated | ||
- @Deprecated(since = "1.17") | ||
void setPlayerSpawned(boolean playerSpawned); | ||
// Paper start | ||
/** | ||
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java | ||
index d0ae8a94db20281d3664d74718c65234eb2e5f83..b7d53973ac4e829a03821d59e0b3a28d6f6a4373 100644 | ||
index 19272cff8d6d040e95b2644d70acdac606e06c16..076fe310d500ebb52e705a3a69e895061702f470 100644 | ||
--- a/src/main/java/org/bukkit/entity/Entity.java | ||
+++ b/src/main/java/org/bukkit/entity/Entity.java | ||
@@ -1172,4 +1172,55 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent | ||
|
@@ -904,7 +905,7 @@ index bcc6ba95bd21c7972865838c636a03f50b6c1f1a..c3fcd8dd7dbb1e1a18e17c014c1e6411 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java | ||
index 68c08e7a212bc3e3885f9b5a4d9aef85fcb3b029..a22909446b7193b1de121bdd6d7b6fbf81dc3be4 100644 | ||
index d21a228bbec0302e75c4db5aa1db54f321143587..a4acc3578e935cd1174474bd1f6ff14db4294fe7 100644 | ||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java | ||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java | ||
@@ -1468,4 +1468,20 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource | ||
|
@@ -954,10 +955,10 @@ index bc84b892cae5fe7019a3ad481e9da79956efa1fe..48eb5b00c460cccde29d327cef1d63fc | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java | ||
index c4763ae47c9b893c1b9ae731ab3c1db76e44ae0f..0cba31526ae7c0429885bb8802512eaad3573e42 100644 | ||
index 20e3c0f856ec034b1d7a5617337ac093386b200f..347d6cbee7daba824adf798c1ec9895ae1da67ab 100644 | ||
--- a/src/main/java/org/bukkit/entity/Player.java | ||
+++ b/src/main/java/org/bukkit/entity/Player.java | ||
@@ -3881,4 +3881,123 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM | ||
@@ -3921,4 +3921,123 @@ public interface Player extends HumanEntity, Conversable, OfflinePlayer, PluginM | ||
*/ | ||
void sendEntityEffect(org.bukkit.@NotNull EntityEffect effect, @NotNull Entity target); | ||
// Paper end - entity effect API | ||
|
@@ -1176,10 +1177,10 @@ index c73489f4b745bc84501ce94f0227b034d9768eae..a97129e71f16ec691759add664bdfd35 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java | ||
index ef5b2a0f18c1c126db0b0c4a4d2a57483680665a..e6c8ffc2583af754eaedc55160ef45c61c22e213 100644 | ||
index d1a5424ff3b289f1c82449ef6d88eb52665df41b..f23b0c250f88926c147af0314b5c4d23c5f8dbae 100644 | ||
--- a/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java | ||
+++ b/src/main/java/org/bukkit/event/entity/EntityDamageEvent.java | ||
@@ -307,7 +307,8 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { | ||
@@ -308,7 +308,8 @@ public class EntityDamageEvent extends EntityEvent implements Cancellable { | ||
WORLD_BORDER, | ||
/** | ||
* Damage caused when an entity contacts a block such as a Cactus, | ||
|
@@ -1207,7 +1208,7 @@ index 8fdfcbc7d20fe0af6b220ab94516247093637621..f6a8928408e11a5ae723366e4ea1280d | |
* When a player gets bad omen after killing a patrol captain. | ||
* | ||
diff --git a/src/main/java/org/bukkit/event/inventory/InventoryType.java b/src/main/java/org/bukkit/event/inventory/InventoryType.java | ||
index 7184f80899206bedeac387e9f8a35482801efd4b..e4197c89c04b91732ce96981f8df0a0bdaee24ce 100644 | ||
index 81118a91c2e22e02a1f774d1cc4d3e97064087ce..3ac1e4a821a5b48d3936222cbfddadd3b803deef 100644 | ||
--- a/src/main/java/org/bukkit/event/inventory/InventoryType.java | ||
+++ b/src/main/java/org/bukkit/event/inventory/InventoryType.java | ||
@@ -164,7 +164,7 @@ public enum InventoryType { | ||
|
@@ -1267,7 +1268,7 @@ index f1f97a85ec713c05c882d7588f4a3e4a017f4795..813f6cd253322538bdf96eb323dd23a7 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/inventory/ItemStack.java b/src/main/java/org/bukkit/inventory/ItemStack.java | ||
index b59222b8c262545d100a9fd28b3bf1d2a4cf4eb0..4414381ac942c040480d53b03565b160eb85c444 100644 | ||
index 8c9654cd19af8b28fa276a55c5060eb389e60c1c..875124b06d87cd4163f0ab1d4dd75f939622f8aa 100644 | ||
--- a/src/main/java/org/bukkit/inventory/ItemStack.java | ||
+++ b/src/main/java/org/bukkit/inventory/ItemStack.java | ||
@@ -19,6 +19,13 @@ import org.bukkit.inventory.meta.ItemMeta; | ||
|
@@ -1284,10 +1285,10 @@ index b59222b8c262545d100a9fd28b3bf1d2a4cf4eb0..4414381ac942c040480d53b03565b160 | |
|
||
/** | ||
* Represents a stack of items. | ||
@@ -1137,4 +1144,482 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat | ||
return Bukkit.getUnsafe().computeTooltipLines(this, tooltipContext, player); | ||
@@ -1318,4 +1325,482 @@ public class ItemStack implements Cloneable, ConfigurationSerializable, Translat | ||
return this.craftDelegate.matchesWithoutData(item, excludeTypes, ignoreCount); | ||
} | ||
// Paper end - expose itemstack tooltip lines | ||
// Paper end - data component API | ||
+ | ||
+ // Purpur start | ||
+ /** | ||
|
@@ -1768,7 +1769,7 @@ index b59222b8c262545d100a9fd28b3bf1d2a4cf4eb0..4414381ac942c040480d53b03565b160 | |
+ // Purpur end | ||
} | ||
diff --git a/src/main/java/org/bukkit/inventory/RecipeChoice.java b/src/main/java/org/bukkit/inventory/RecipeChoice.java | ||
index f1aa67997f904953742e8895e49341c2f73d44a2..993cf7995514fb0ef3c4388bb3ce49c3187ab251 100644 | ||
index 922bb69b5f218e489a6dd5e0f207743c1f1d3d35..9b3e292be334d21eb978373f434bf3811ec4af2b 100644 | ||
--- a/src/main/java/org/bukkit/inventory/RecipeChoice.java | ||
+++ b/src/main/java/org/bukkit/inventory/RecipeChoice.java | ||
@@ -191,6 +191,7 @@ public interface RecipeChoice extends Predicate<ItemStack>, Cloneable { | ||
|
Oops, something went wrong.