geforkt von Mirrors/Paper
Updated Upstream (Bukkit/CraftBukkit) (#8991)
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 2b4582fb SPIGOT-5916: getLastColors does not work with the rgb colors CraftBukkit Changes: f7707086d SPIGOT-7299: Fix indirect/anvil damage events and minor improvements
Dieser Commit ist enthalten in:
Ursprung
79db3a2a4b
Commit
5730a94208
patches/api
0207-Add-setMaxPlayers-API.patch0207-Support-hex-colors-in-getLastColors.patch0208-Add-BellRingEvent.patch0209-Add-moon-phase-API.patch0210-Add-playPickupItemAnimation-to-LivingEntity.patch0211-Add-more-Evoker-API.patch0212-Add-methods-to-get-translation-keys.patch0213-Create-HoverEvent-from-ItemStack-Entity.patch0214-Add-additional-open-container-api-to-HumanEntity.patch0215-Expose-the-Entity-Counter-to-allow-plugins-to-use-va.patch0216-Entity-isTicking.patch0217-Clarify-the-Javadocs-for-Entity.getEntitySpawnReason.patch0218-Villager-resetOffers.patch0219-Player-elytra-boost-API.patch0220-Add-getOfflinePlayerIfCached-String.patch0221-Add-ignore-discounts-API.patch0222-Item-no-age-no-player-pickup.patch0223-Beacon-API-custom-effect-ranges.patch0224-Add-API-for-quit-reason.patch0225-Add-Destroy-Speed-API.patch0226-Add-LivingEntity-clearActiveItem.patch0227-Add-PlayerItemCooldownEvent.patch0228-More-lightning-API.patch0229-Add-PlayerShearBlockEvent.patch0230-Enable-multi-release-plugin-jars.patch0231-Player-Chunk-Load-Unload-Events.patch0232-Expose-LivingEntity-hurt-direction.patch0233-Add-OBSTRUCTED-reason-to-BedEnterResult.patch0234-Added-PlayerTradeEvent.patch0235-Add-TargetHitEvent-API.patch0236-Additional-Block-Material-API-s.patch0237-Add-API-to-get-Material-from-Boats-and-Minecarts.patch0238-Add-PlayerFlowerPotManipulateEvent.patch0239-Zombie-API-breaking-doors.patch0240-Add-EntityLoadCrossbowEvent.patch0241-Added-WorldGameRuleChangeEvent.patch0242-Added-ServerResourcesReloadedEvent.patch0243-Add-BlockFailedDispenseEvent.patch0244-Added-PlayerLecternPageChangeEvent.patch0245-Added-PlayerLoomPatternSelectEvent.patch0246-Add-API-to-get-exact-interaction-point-in-PlayerInte.patch0247-Add-sendOpLevel-API.patch0248-Add-PaperRegistry.patch0249-Add-StructuresLocateEvent.patch0250-Return-chat-component-with-empty-text-instead-of-thr.patch0251-Add-BlockPreDispenseEvent.patch0252-Added-missing-vanilla-tags.patch0253-Added-PlayerChangeBeaconEffectEvent.patch0254-Added-PlayerStonecutterRecipeSelectEvent.patch0255-Add-dropLeash-variable-to-EntityUnleashEvent.patch0256-add-DragonEggFormEvent.patch0257-EntityMoveEvent.patch0258-Allow-adding-items-to-BlockDropItemEvent.patch0259-Add-getMainThreadExecutor-to-BukkitScheduler.patch0260-living-entity-allow-attribute-registration.patch0261-Add-missing-effects.patch0262-Expose-Tracked-Players.patch0263-Cache-the-result-of-Material-isBlock.patch0264-Add-worldborder-events.patch0265-added-PlayerNameEntityEvent.patch0266-Add-recipe-to-cook-events.patch0267-Add-Block-isValidTool.patch0268-Expand-world-key-API.patch0269-Item-Rarity-API.patch0270-Expose-protocol-version.patch0271-add-isDeeplySleeping-to-HumanEntity.patch0272-add-consumeFuel-to-FurnaceBurnEvent.patch0273-add-get-set-drop-chance-to-EntityEquipment.patch0274-Added-PlayerDeepSleepEvent.patch0275-More-World-API.patch0276-Added-PlayerBedFailEnterEvent.patch0277-Introduce-beacon-activation-deactivation-events.patch0278-PlayerMoveEvent-Improvements.patch0279-add-RespawnFlags-to-PlayerRespawnEvent.patch0280-Add-more-WanderingTrader-API.patch0281-Add-EntityBlockStorage-clearEntities.patch0282-Add-Adventure-message-to-PlayerAdvancementDoneEvent.patch0283-Add-raw-address-to-AsyncPlayerPreLoginEvent.patch0284-Inventory-close.patch0285-Add-a-should-burn-in-sunlight-API-for-Phantoms-and-S.patch0286-Add-basic-Datapack-API.patch0287-additions-to-PlayerGameModeChangeEvent.patch0288-ItemStack-repair-check-API.patch0289-More-Enchantment-API.patch0290-Add-Mob-lookAt-API.patch0291-ItemStack-editMeta.patch0292-Add-EntityInsideBlockEvent.patch0293-Attributes-API-for-item-defaults.patch0294-Add-cause-to-Weather-ThunderChangeEvents.patch0295-More-Lidded-Block-API.patch0296-Add-PlayerKickEvent-causes.patch0297-Add-PufferFishStateChangeEvent.patch0298-Add-BellRevealRaiderEvent.patch0299-Add-ElderGuardianAppearanceEvent.patch0300-Add-more-line-of-sight-methods.patch0301-Add-WaterBottleSplashEvent.patch0302-Add-more-LimitedRegion-API.patch0303-Missing-Entity-Behavior-API.patch0304-Adds-PlayerArmSwingEvent.patch0305-Add-PlayerSignCommandPreprocessEvent.patch
@ -1,34 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Gerrygames <gecam59@gmail.com>
|
|
||||||
Date: Thu, 16 Jul 2020 10:40:10 +0200
|
|
||||||
Subject: [PATCH] Support hex colors in getLastColors
|
|
||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/ChatColor.java b/src/main/java/org/bukkit/ChatColor.java
|
|
||||||
index 24ade174df77d75339b44bcd4b035e0c46d95dc3..f6eb30f53dad684f156102cf7147b2f00c82c71e 100644
|
|
||||||
--- a/src/main/java/org/bukkit/ChatColor.java
|
|
||||||
+++ b/src/main/java/org/bukkit/ChatColor.java
|
|
||||||
@@ -363,6 +363,7 @@ public enum ChatColor {
|
|
||||||
return new String(b);
|
|
||||||
}
|
|
||||||
|
|
||||||
+ private static final Pattern HEX_COLOR_PATTERN = Pattern.compile(COLOR_CHAR + "x(?>" + COLOR_CHAR + "[0-9a-f]){6}", Pattern.CASE_INSENSITIVE); // Paper - Support hex colors in getLastColors
|
|
||||||
/**
|
|
||||||
* Gets the ChatColors used at the end of the given input string.
|
|
||||||
*
|
|
||||||
@@ -380,6 +381,15 @@ public enum ChatColor {
|
|
||||||
for (int index = length - 1; index > -1; index--) {
|
|
||||||
char section = input.charAt(index);
|
|
||||||
if (section == COLOR_CHAR && index < length - 1) {
|
|
||||||
+ // Paper start - Support hex colors
|
|
||||||
+ if (index > 11 && input.charAt(index - 12) == COLOR_CHAR && (input.charAt(index - 11) == 'x' || input.charAt(index - 11) == 'X')) {
|
|
||||||
+ String color = input.substring(index - 12, index + 2);
|
|
||||||
+ if (HEX_COLOR_PATTERN.matcher(color).matches()) {
|
|
||||||
+ result = color + result;
|
|
||||||
+ break;
|
|
||||||
+ }
|
|
||||||
+ }
|
|
||||||
+ // Paper end
|
|
||||||
char c = input.charAt(index + 1);
|
|
||||||
ChatColor color = getByChar(c);
|
|
||||||
|
|
@ -5,7 +5,7 @@ Subject: [PATCH] Cache the result of Material#isBlock
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
||||||
index 0aa1692731ffb05e812f904459853da6080c3f9f..f8440fd7a7c9a00124cb387c6ba3b0973df0d145 100644
|
index 9117bbfb5208231752cfa757c0d088bc270d43b9..f0f81ecad42fc3dc894ec0c150346206d70a8720 100644
|
||||||
--- a/src/main/java/org/bukkit/Material.java
|
--- a/src/main/java/org/bukkit/Material.java
|
||||||
+++ b/src/main/java/org/bukkit/Material.java
|
+++ b/src/main/java/org/bukkit/Material.java
|
||||||
@@ -4348,6 +4348,7 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@@ -4348,6 +4348,7 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@ -39,7 +39,7 @@ index 0000000000000000000000000000000000000000..74ef8395cc040ce488c2acaa416db202
|
|||||||
+ }
|
+ }
|
||||||
+}
|
+}
|
||||||
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
||||||
index f8440fd7a7c9a00124cb387c6ba3b0973df0d145..1afeac98a9facbe25edc9a96d906b31d8327f047 100644
|
index f0f81ecad42fc3dc894ec0c150346206d70a8720..467282a76dbf2edfd88baa4275991ae1163c0919 100644
|
||||||
--- a/src/main/java/org/bukkit/Material.java
|
--- a/src/main/java/org/bukkit/Material.java
|
||||||
+++ b/src/main/java/org/bukkit/Material.java
|
+++ b/src/main/java/org/bukkit/Material.java
|
||||||
@@ -4414,6 +4414,17 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@@ -4414,6 +4414,17 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@ -5,7 +5,7 @@ Subject: [PATCH] Attributes API for item defaults
|
|||||||
|
|
||||||
|
|
||||||
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
diff --git a/src/main/java/org/bukkit/Material.java b/src/main/java/org/bukkit/Material.java
|
||||||
index 1afeac98a9facbe25edc9a96d906b31d8327f047..a2a5c3d6ab37dd5908ba5dbd228e8ad4bea2f799 100644
|
index 467282a76dbf2edfd88baa4275991ae1163c0919..31ec16d134fd8eb5607d18e17f93225eef402d7e 100644
|
||||||
--- a/src/main/java/org/bukkit/Material.java
|
--- a/src/main/java/org/bukkit/Material.java
|
||||||
+++ b/src/main/java/org/bukkit/Material.java
|
+++ b/src/main/java/org/bukkit/Material.java
|
||||||
@@ -4425,6 +4425,21 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@@ -4425,6 +4425,21 @@ public enum Material implements Keyed, Translatable, net.kyori.adventure.transla
|
@ -23,7 +23,7 @@ index aa534b1a9a1fb84a2fbd4b372f313bb4b63325fa..43b53c21af01e0f496c8aaacff82dfdf
|
|||||||
// Paper end
|
// Paper end
|
||||||
}
|
}
|
||||||
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||||
index cc61e030f1bdb4d1ef52a0a1ae4983f95d2460fd..9ab91154c74b5a3001cf4d5df1b4ae1e26508b60 100644
|
index 16536dae04b020de43f9e13ff32c659b9e6cab0c..72f7bf02ec1ace2c835e4ad58e3e59b3d7357972 100644
|
||||||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||||
@@ -546,6 +546,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
@@ -546,6 +546,19 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden Mehr anzeigen
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren