diff --git a/Spigot-API-Patches/0148-Expose-attack-cooldown-methods-for-Player.patch b/Spigot-API-Patches/0148-Expose-attack-cooldown-methods-for-Player.patch index 35acc8bb8a..4d8c3335df 100644 --- a/Spigot-API-Patches/0148-Expose-attack-cooldown-methods-for-Player.patch +++ b/Spigot-API-Patches/0148-Expose-attack-cooldown-methods-for-Player.patch @@ -1,11 +1,11 @@ -From b0307c1c84d01e61a96ad64b5153abd236229626 Mon Sep 17 00:00:00 2001 +From 81fbead5ed0f35706240a2d8d9c3d84db31bf2ad Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Tue, 4 Sep 2018 15:01:54 -0500 Subject: [PATCH] Expose attack cooldown methods for Player diff --git a/src/main/java/org/bukkit/entity/Player.java b/src/main/java/org/bukkit/entity/Player.java -index 6da68835..ae2b9752 100644 +index 6da68835d..ae2b9752b 100644 --- a/src/main/java/org/bukkit/entity/Player.java +++ b/src/main/java/org/bukkit/entity/Player.java @@ -1909,6 +1909,26 @@ public interface Player extends HumanEntity, Conversable, CommandSender, Offline @@ -36,5 +36,5 @@ index 6da68835..ae2b9752 100644 // Spigot start -- -2.18.0 +2.19.0 diff --git a/Spigot-API-Patches/0149-Improve-death-events.patch b/Spigot-API-Patches/0149-Improve-death-events.patch index 57e516a6e6..bca9a6be30 100644 --- a/Spigot-API-Patches/0149-Improve-death-events.patch +++ b/Spigot-API-Patches/0149-Improve-death-events.patch @@ -1,4 +1,4 @@ -From 6656095685e81f278910780b8b8e7b6c196727d4 Mon Sep 17 00:00:00 2001 +From c3e3a14ed619bbe7b1eb5af0a11c333dd495652b Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Tue, 21 Aug 2018 01:32:28 +0100 Subject: [PATCH] Improve death events diff --git a/Spigot-API-Patches/0150-Mob-Pathfinding-API.patch b/Spigot-API-Patches/0150-Mob-Pathfinding-API.patch index fd7743530d..66c44cc670 100644 --- a/Spigot-API-Patches/0150-Mob-Pathfinding-API.patch +++ b/Spigot-API-Patches/0150-Mob-Pathfinding-API.patch @@ -1,4 +1,4 @@ -From 8c127ac73fee4c7ad71b7033b438fa109bc20415 Mon Sep 17 00:00:00 2001 +From 8287fe3f64b74ccd77c5b7e26d4ac557be8d8998 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 9 Sep 2018 12:39:06 -0400 Subject: [PATCH] Mob Pathfinding API diff --git a/Spigot-API-Patches/0151-Add-an-API-for-CanPlaceOn-and-CanDestroy-NBT-values.patch b/Spigot-API-Patches/0151-Add-an-API-for-CanPlaceOn-and-CanDestroy-NBT-values.patch new file mode 100644 index 0000000000..3766127770 --- /dev/null +++ b/Spigot-API-Patches/0151-Add-an-API-for-CanPlaceOn-and-CanDestroy-NBT-values.patch @@ -0,0 +1,47 @@ +From f0bdeecfc35f492bd8b81ad517e209611fff0d6f Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa +Date: Wed, 12 Sep 2018 18:53:35 +0300 +Subject: [PATCH] Add an API for CanPlaceOn and CanDestroy NBT values + + +diff --git a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java +index 8d8f09879..97fa7807b 100644 +--- a/src/main/java/org/bukkit/inventory/meta/ItemMeta.java ++++ b/src/main/java/org/bukkit/inventory/meta/ItemMeta.java +@@ -350,4 +350,33 @@ public interface ItemMeta extends Cloneable, ConfigurationSerializable { + + Spigot spigot(); + // Spigot end ++ // Paper start - Add an API for CanPlaceOn and CanDestroy NBT values ++ /** ++ * Gets set of materials what given item can destroy in {@link org.bukkit.GameMode#ADVENTURE} ++ * ++ * @return Set of materials ++ */ ++ Set getCanDestroy(); ++ ++ /** ++ * Sets set of materials what given item can destroy in {@link org.bukkit.GameMode#ADVENTURE} ++ * ++ * @param canDestroy Set of materials ++ */ ++ void setCanDestroy(Set canDestroy); ++ ++ /** ++ * Gets set of materials where given item can be placed on in {@link org.bukkit.GameMode#ADVENTURE} ++ * ++ * @return Set of materials ++ */ ++ Set getCanPlaceOn(); ++ ++ /** ++ * Sets set of materials where given item can be placed on in {@link org.bukkit.GameMode#ADVENTURE} ++ * ++ * @param canPlaceOn Set of materials ++ */ ++ void setCanPlaceOn(Set canPlaceOn); ++ // Paper end + } +-- +2.19.0 + diff --git a/Spigot-API-Patches/0151-Performance-Concurrency-Improvements-to-Permissions.patch b/Spigot-API-Patches/0152-Performance-Concurrency-Improvements-to-Permissions.patch similarity index 98% rename from Spigot-API-Patches/0151-Performance-Concurrency-Improvements-to-Permissions.patch rename to Spigot-API-Patches/0152-Performance-Concurrency-Improvements-to-Permissions.patch index d0f4d82d7b..0ff1bd8d51 100644 --- a/Spigot-API-Patches/0151-Performance-Concurrency-Improvements-to-Permissions.patch +++ b/Spigot-API-Patches/0152-Performance-Concurrency-Improvements-to-Permissions.patch @@ -1,4 +1,4 @@ -From 4f1fd57d2ea5113299a778d65853cf793a729cbb Mon Sep 17 00:00:00 2001 +From 8cc83558c69d808807f58f7fd8986921a4bf285c Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 13 Sep 2018 20:51:50 -0400 Subject: [PATCH] Performance & Concurrency Improvements to Permissions diff --git a/Spigot-API-Patches/0152-Add-ItemStackRecipeChoice-Draft-API.patch b/Spigot-API-Patches/0153-Add-ItemStackRecipeChoice-Draft-API.patch similarity index 96% rename from Spigot-API-Patches/0152-Add-ItemStackRecipeChoice-Draft-API.patch rename to Spigot-API-Patches/0153-Add-ItemStackRecipeChoice-Draft-API.patch index 6a2dddca2d..662134e0f9 100644 --- a/Spigot-API-Patches/0152-Add-ItemStackRecipeChoice-Draft-API.patch +++ b/Spigot-API-Patches/0153-Add-ItemStackRecipeChoice-Draft-API.patch @@ -1,4 +1,4 @@ -From 72b028b971900862d0ef20993f92a5edb28774d4 Mon Sep 17 00:00:00 2001 +From e76b659f5e22697dc759adffd8ed7d470cc020a2 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 13 Sep 2018 21:39:26 -0400 Subject: [PATCH] Add ItemStackRecipeChoice Draft API diff --git a/Spigot-API-Patches/0153-Implement-furnace-cook-speed-multiplier-API.patch b/Spigot-API-Patches/0154-Implement-furnace-cook-speed-multiplier-API.patch similarity index 95% rename from Spigot-API-Patches/0153-Implement-furnace-cook-speed-multiplier-API.patch rename to Spigot-API-Patches/0154-Implement-furnace-cook-speed-multiplier-API.patch index 3f37d92557..510c27b31a 100644 --- a/Spigot-API-Patches/0153-Implement-furnace-cook-speed-multiplier-API.patch +++ b/Spigot-API-Patches/0154-Implement-furnace-cook-speed-multiplier-API.patch @@ -1,4 +1,4 @@ -From 9f579908896fe5bd40e8320205d51533aff8078b Mon Sep 17 00:00:00 2001 +From ce4f8f0180f41db23e516b3004e75d9bf716fcb6 Mon Sep 17 00:00:00 2001 From: Tassu Date: Thu, 13 Sep 2018 08:45:01 +0300 Subject: [PATCH] Implement furnace cook speed multiplier API diff --git a/Spigot-API-Patches/0154-PreSpawnerSpawnEvent.patch b/Spigot-API-Patches/0155-PreSpawnerSpawnEvent.patch similarity index 96% rename from Spigot-API-Patches/0154-PreSpawnerSpawnEvent.patch rename to Spigot-API-Patches/0155-PreSpawnerSpawnEvent.patch index fb5ca62183..98686617e5 100644 --- a/Spigot-API-Patches/0154-PreSpawnerSpawnEvent.patch +++ b/Spigot-API-Patches/0155-PreSpawnerSpawnEvent.patch @@ -1,4 +1,4 @@ -From a8938a2fab6db83a3582928e8d967a12d64d39be Mon Sep 17 00:00:00 2001 +From 32a60bd35059c35a3e7d359a37400769b93c6e31 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Tue, 18 Sep 2018 23:50:10 +0100 Subject: [PATCH] PreSpawnerSpawnEvent diff --git a/Spigot-API-Patches/0155-Remove-Precondition-on-name-for-AttributeModifier.patch b/Spigot-API-Patches/0156-Remove-Precondition-on-name-for-AttributeModifier.patch similarity index 94% rename from Spigot-API-Patches/0155-Remove-Precondition-on-name-for-AttributeModifier.patch rename to Spigot-API-Patches/0156-Remove-Precondition-on-name-for-AttributeModifier.patch index 148024358b..c09df05760 100644 --- a/Spigot-API-Patches/0155-Remove-Precondition-on-name-for-AttributeModifier.patch +++ b/Spigot-API-Patches/0156-Remove-Precondition-on-name-for-AttributeModifier.patch @@ -1,4 +1,4 @@ -From 04a41c887caf57c8e3572a7b42eac846a5af3315 Mon Sep 17 00:00:00 2001 +From 02ea14d151acf44e283dee55d8ed2daf733704ef Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 22 Sep 2018 18:41:01 -0400 Subject: [PATCH] Remove Precondition on name for AttributeModifier diff --git a/Spigot-Server-Patches/0069-Configurable-Non-Player-Arrow-Despawn-Rate.patch b/Spigot-Server-Patches/0069-Configurable-Non-Player-Arrow-Despawn-Rate.patch index 65171f3817..e7920895d1 100644 --- a/Spigot-Server-Patches/0069-Configurable-Non-Player-Arrow-Despawn-Rate.patch +++ b/Spigot-Server-Patches/0069-Configurable-Non-Player-Arrow-Despawn-Rate.patch @@ -1,4 +1,4 @@ -From cc78b6a0a71a18db09dd96d40bf04cf330e84327 Mon Sep 17 00:00:00 2001 +From 69f6dac1f8e342ccf68834f614debb45534b9992 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 18 Mar 2016 15:12:22 -0400 Subject: [PATCH] Configurable Non Player Arrow Despawn Rate diff --git a/Spigot-Server-Patches/0080-Configurable-spawn-chances-for-skeleton-horses.patch b/Spigot-Server-Patches/0080-Configurable-spawn-chances-for-skeleton-horses.patch index 83f24fd6ed..89b7a48ca4 100644 --- a/Spigot-Server-Patches/0080-Configurable-spawn-chances-for-skeleton-horses.patch +++ b/Spigot-Server-Patches/0080-Configurable-spawn-chances-for-skeleton-horses.patch @@ -1,4 +1,4 @@ -From c86319d3f6cbf3c5a98fc7a170fd396b450a7242 Mon Sep 17 00:00:00 2001 +From 0d2223784694eaef2699c7b8a68e9cbd0edc2231 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 22 Mar 2016 12:04:28 -0500 Subject: [PATCH] Configurable spawn chances for skeleton horses diff --git a/Spigot-Server-Patches/0083-Option-to-disable-BlockPhysicsEvent-for-Redstone.patch b/Spigot-Server-Patches/0083-Option-to-disable-BlockPhysicsEvent-for-Redstone.patch index 8dccdac415..7d9841034d 100644 --- a/Spigot-Server-Patches/0083-Option-to-disable-BlockPhysicsEvent-for-Redstone.patch +++ b/Spigot-Server-Patches/0083-Option-to-disable-BlockPhysicsEvent-for-Redstone.patch @@ -1,4 +1,4 @@ -From 45f8d6d55123ad50df9f0f520b88ff7d73dca05a Mon Sep 17 00:00:00 2001 +From 33fbd58a20a30567156ab703b10c60cb246c2367 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 28 Mar 2016 19:55:45 -0400 Subject: [PATCH] Option to disable BlockPhysicsEvent for Redstone diff --git a/Spigot-Server-Patches/0085-Configurable-Chunk-Inhabited-Timer.patch b/Spigot-Server-Patches/0085-Configurable-Chunk-Inhabited-Timer.patch index a96747bdab..4169f12419 100644 --- a/Spigot-Server-Patches/0085-Configurable-Chunk-Inhabited-Timer.patch +++ b/Spigot-Server-Patches/0085-Configurable-Chunk-Inhabited-Timer.patch @@ -1,4 +1,4 @@ -From 13ed84bb9522cd10db5a7e1b734e91c936396099 Mon Sep 17 00:00:00 2001 +From 2e536456c28522dbe832ea41424296bf5cfd01e2 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 28 Mar 2016 20:46:14 -0400 Subject: [PATCH] Configurable Chunk Inhabited Timer diff --git a/Spigot-Server-Patches/0093-Configurable-Grass-Spread-Tick-Rate.patch b/Spigot-Server-Patches/0093-Configurable-Grass-Spread-Tick-Rate.patch index c5645ab8f5..85878d9270 100644 --- a/Spigot-Server-Patches/0093-Configurable-Grass-Spread-Tick-Rate.patch +++ b/Spigot-Server-Patches/0093-Configurable-Grass-Spread-Tick-Rate.patch @@ -1,4 +1,4 @@ -From 9f37bceb59d944975abbd6ab74871f6a0557ce39 Mon Sep 17 00:00:00 2001 +From f6ea6310f7a0495954dd970acd2c50819f2e3390 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 3 Apr 2016 16:28:17 -0400 Subject: [PATCH] Configurable Grass Spread Tick Rate diff --git a/Spigot-Server-Patches/0094-Configurable-Keep-Spawn-Loaded-range-per-world.patch b/Spigot-Server-Patches/0094-Configurable-Keep-Spawn-Loaded-range-per-world.patch index df4d5e8419..e63022621c 100644 --- a/Spigot-Server-Patches/0094-Configurable-Keep-Spawn-Loaded-range-per-world.patch +++ b/Spigot-Server-Patches/0094-Configurable-Keep-Spawn-Loaded-range-per-world.patch @@ -1,4 +1,4 @@ -From 345e6dd3e24f72ba67a50d5f9b1aa5df0515bf10 Mon Sep 17 00:00:00 2001 +From 763fcbbb3ad52e9c0debf6d767e5da1cdeb56c59 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 13 Sep 2014 23:14:43 -0400 Subject: [PATCH] Configurable Keep Spawn Loaded range per world diff --git a/Spigot-Server-Patches/0098-Option-to-use-vanilla-per-world-scoreboard-coloring-.patch b/Spigot-Server-Patches/0098-Option-to-use-vanilla-per-world-scoreboard-coloring-.patch index 84ce242c2c..6d9790491f 100644 --- a/Spigot-Server-Patches/0098-Option-to-use-vanilla-per-world-scoreboard-coloring-.patch +++ b/Spigot-Server-Patches/0098-Option-to-use-vanilla-per-world-scoreboard-coloring-.patch @@ -1,4 +1,4 @@ -From e7db92bad31962c695798793e38f3e9f8c7ee24d Mon Sep 17 00:00:00 2001 +From 695f460f763891dde42bc64be4e47a82531ccb62 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 6 Apr 2016 01:04:23 -0500 Subject: [PATCH] Option to use vanilla per-world scoreboard coloring on names diff --git a/Spigot-Server-Patches/0108-Add-ability-to-configure-frosted_ice-properties.patch b/Spigot-Server-Patches/0108-Add-ability-to-configure-frosted_ice-properties.patch index f40dd572d1..8b264a076d 100644 --- a/Spigot-Server-Patches/0108-Add-ability-to-configure-frosted_ice-properties.patch +++ b/Spigot-Server-Patches/0108-Add-ability-to-configure-frosted_ice-properties.patch @@ -1,4 +1,4 @@ -From 1ab2b13e9bb811664a92a4abe8fcc7d1de2c26aa Mon Sep 17 00:00:00 2001 +From aa0b6c9ff279deb6b28cba214bb3980e73efb996 Mon Sep 17 00:00:00 2001 From: kashike Date: Thu, 21 Apr 2016 23:51:55 -0700 Subject: [PATCH] Add ability to configure frosted_ice properties diff --git a/Spigot-Server-Patches/0111-LootTable-API-Replenishable-Lootables-Feature.patch b/Spigot-Server-Patches/0111-LootTable-API-Replenishable-Lootables-Feature.patch index 6ecb2555e6..84c8690176 100644 --- a/Spigot-Server-Patches/0111-LootTable-API-Replenishable-Lootables-Feature.patch +++ b/Spigot-Server-Patches/0111-LootTable-API-Replenishable-Lootables-Feature.patch @@ -1,4 +1,4 @@ -From b435c276fbc0a0e2e04823cfdd5079bae5e2363d Mon Sep 17 00:00:00 2001 +From 883120e054e15f375fb50d93b96bc60d28ad32ce Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 1 May 2016 21:19:14 -0400 Subject: [PATCH] LootTable API & Replenishable Lootables Feature diff --git a/Spigot-Server-Patches/0119-Optional-TNT-doesn-t-move-in-water.patch b/Spigot-Server-Patches/0119-Optional-TNT-doesn-t-move-in-water.patch index 2fe0f9a875..b280d812af 100644 --- a/Spigot-Server-Patches/0119-Optional-TNT-doesn-t-move-in-water.patch +++ b/Spigot-Server-Patches/0119-Optional-TNT-doesn-t-move-in-water.patch @@ -1,4 +1,4 @@ -From f702d1759f4030e80d0c44489b7c79daf7e7b69d Mon Sep 17 00:00:00 2001 +From c4f5e75879f9d865e246ad3c0e95afe61737259c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sun, 22 May 2016 20:20:55 -0500 Subject: [PATCH] Optional TNT doesn't move in water diff --git a/Spigot-Server-Patches/0124-Delay-Chunk-Unloads-based-on-Player-Movement.patch b/Spigot-Server-Patches/0124-Delay-Chunk-Unloads-based-on-Player-Movement.patch index 00bc532edd..45627b64c0 100644 --- a/Spigot-Server-Patches/0124-Delay-Chunk-Unloads-based-on-Player-Movement.patch +++ b/Spigot-Server-Patches/0124-Delay-Chunk-Unloads-based-on-Player-Movement.patch @@ -1,4 +1,4 @@ -From bda7b944cb74d3529dca2cc80ba08f60efe89abd Mon Sep 17 00:00:00 2001 +From 7465d7be397a9d9ffe94a32b41501bdfe77a72f3 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 18 Jun 2016 23:22:12 -0400 Subject: [PATCH] Delay Chunk Unloads based on Player Movement diff --git a/Spigot-Server-Patches/0136-Auto-Save-Improvements.patch b/Spigot-Server-Patches/0136-Auto-Save-Improvements.patch index b7e5cbb316..74d64b4fab 100644 --- a/Spigot-Server-Patches/0136-Auto-Save-Improvements.patch +++ b/Spigot-Server-Patches/0136-Auto-Save-Improvements.patch @@ -1,4 +1,4 @@ -From fef201ed700ee4c30c8b2bb8aded0e6cca9e076b Mon Sep 17 00:00:00 2001 +From 4aee3a67204e2cca9bd24f8b891807f57c8d7110 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 19 Sep 2016 23:16:39 -0400 Subject: [PATCH] Auto Save Improvements diff --git a/Spigot-Server-Patches/0141-Option-to-remove-corrupt-tile-entities.patch b/Spigot-Server-Patches/0141-Option-to-remove-corrupt-tile-entities.patch index 8c7b8ee4c2..6c06d1672e 100644 --- a/Spigot-Server-Patches/0141-Option-to-remove-corrupt-tile-entities.patch +++ b/Spigot-Server-Patches/0141-Option-to-remove-corrupt-tile-entities.patch @@ -1,4 +1,4 @@ -From 23e5004aa94503a3c9c221f734665887bc066eab Mon Sep 17 00:00:00 2001 +From 6d9f312b1a4acc0055a7bebd064fcdf58ea1fdfb Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Wed, 5 Oct 2016 16:27:36 -0500 Subject: [PATCH] Option to remove corrupt tile entities diff --git a/Spigot-Server-Patches/0144-Prevent-Auto-Save-if-Save-Queue-is-full.patch b/Spigot-Server-Patches/0144-Prevent-Auto-Save-if-Save-Queue-is-full.patch index e4a2ac5b65..45e4d7f888 100644 --- a/Spigot-Server-Patches/0144-Prevent-Auto-Save-if-Save-Queue-is-full.patch +++ b/Spigot-Server-Patches/0144-Prevent-Auto-Save-if-Save-Queue-is-full.patch @@ -1,4 +1,4 @@ -From c971a6e41bce603b22ca19f912e833b0fd0cce9d Mon Sep 17 00:00:00 2001 +From 1b5c32b608dc6896989f14406a9aa111266ad3ab Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 3 Nov 2016 21:52:22 -0400 Subject: [PATCH] Prevent Auto Save if Save Queue is full diff --git a/Spigot-Server-Patches/0146-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch b/Spigot-Server-Patches/0146-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch index 4c3ca23f42..0d870dcb8d 100644 --- a/Spigot-Server-Patches/0146-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch +++ b/Spigot-Server-Patches/0146-Filter-bad-data-from-ArmorStand-and-SpawnEgg-items.patch @@ -1,4 +1,4 @@ -From 8e423517ffae206c332d3a4874b324b9eae5fdfe Mon Sep 17 00:00:00 2001 +From ac65d6fee722653f8d1d0957bb88b250bb32c4e7 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sat, 12 Nov 2016 23:25:22 -0600 Subject: [PATCH] Filter bad data from ArmorStand and SpawnEgg items diff --git a/Spigot-Server-Patches/0156-Configurable-Cartographer-Treasure-Maps.patch b/Spigot-Server-Patches/0156-Configurable-Cartographer-Treasure-Maps.patch index 20f95abc8f..33bd57e23e 100644 --- a/Spigot-Server-Patches/0156-Configurable-Cartographer-Treasure-Maps.patch +++ b/Spigot-Server-Patches/0156-Configurable-Cartographer-Treasure-Maps.patch @@ -1,4 +1,4 @@ -From a42354725a30e777b61bd15f1f4fcc16297aed7f Mon Sep 17 00:00:00 2001 +From 9c805dc40de579fbe3f60f440d851ed2a1f0c95a Mon Sep 17 00:00:00 2001 From: Aikar Date: Tue, 20 Dec 2016 15:26:27 -0500 Subject: [PATCH] Configurable Cartographer Treasure Maps diff --git a/Spigot-Server-Patches/0172-Cap-Entity-Collisions.patch b/Spigot-Server-Patches/0172-Cap-Entity-Collisions.patch index 647d0a31dc..1c0dfe8c5b 100644 --- a/Spigot-Server-Patches/0172-Cap-Entity-Collisions.patch +++ b/Spigot-Server-Patches/0172-Cap-Entity-Collisions.patch @@ -1,4 +1,4 @@ -From 90dee31ba9876459c1cc38a82bdd30d0e6900b6f Mon Sep 17 00:00:00 2001 +From 09bdf613dd7547fdbd79c1c4b5d5561ed683893f Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 22 Jan 2017 18:07:56 -0500 Subject: [PATCH] Cap Entity Collisions diff --git a/Spigot-Server-Patches/0179-Add-option-to-make-parrots-stay-on-shoulders-despite.patch b/Spigot-Server-Patches/0179-Add-option-to-make-parrots-stay-on-shoulders-despite.patch index d5a80b1dab..757ae4e534 100644 --- a/Spigot-Server-Patches/0179-Add-option-to-make-parrots-stay-on-shoulders-despite.patch +++ b/Spigot-Server-Patches/0179-Add-option-to-make-parrots-stay-on-shoulders-despite.patch @@ -1,4 +1,4 @@ -From 9c43deb3a346ab36c9cc6c8666a79f71d5ee4682 Mon Sep 17 00:00:00 2001 +From af37ef1e24c03b7a7dfed40e0611c7c471c9c008 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 16 May 2017 21:29:08 -0500 Subject: [PATCH] Add option to make parrots stay on shoulders despite movement diff --git a/Spigot-Server-Patches/0182-provide-a-configurable-option-to-disable-creeper-lin.patch b/Spigot-Server-Patches/0182-provide-a-configurable-option-to-disable-creeper-lin.patch index e825186903..148e1e204d 100644 --- a/Spigot-Server-Patches/0182-provide-a-configurable-option-to-disable-creeper-lin.patch +++ b/Spigot-Server-Patches/0182-provide-a-configurable-option-to-disable-creeper-lin.patch @@ -1,4 +1,4 @@ -From 860a7627983af59336b514e3a6c19845d333ebe0 Mon Sep 17 00:00:00 2001 +From 4229fb214aecee17523646559a10f25bf5523e26 Mon Sep 17 00:00:00 2001 From: Shane Freeder Date: Sun, 11 Jun 2017 21:01:18 +0100 Subject: [PATCH] provide a configurable option to disable creeper lingering diff --git a/Spigot-Server-Patches/0215-Option-for-maximum-exp-value-when-merging-orbs.patch b/Spigot-Server-Patches/0215-Option-for-maximum-exp-value-when-merging-orbs.patch index 20314e36a3..da310167ca 100644 --- a/Spigot-Server-Patches/0215-Option-for-maximum-exp-value-when-merging-orbs.patch +++ b/Spigot-Server-Patches/0215-Option-for-maximum-exp-value-when-merging-orbs.patch @@ -1,4 +1,4 @@ -From a1c9725335b68ff009238b5e1f3be7a1e9448b71 Mon Sep 17 00:00:00 2001 +From 8a8ea6d43ef3a37395e5175bf65dbc6a88e3e712 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Fri, 10 Nov 2017 23:03:12 -0500 Subject: [PATCH] Option for maximum exp value when merging orbs diff --git a/Spigot-Server-Patches/0225-Configurable-Chunks-Sends-per-Tick-setting.patch b/Spigot-Server-Patches/0225-Configurable-Chunks-Sends-per-Tick-setting.patch index 5f2870ea99..edd66a517e 100644 --- a/Spigot-Server-Patches/0225-Configurable-Chunks-Sends-per-Tick-setting.patch +++ b/Spigot-Server-Patches/0225-Configurable-Chunks-Sends-per-Tick-setting.patch @@ -1,4 +1,4 @@ -From dc86831d4aa4d9e67856f02dec39e20d82522ffd Mon Sep 17 00:00:00 2001 +From 348dc618eced6c2791c08235138dea937e6ce275 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 1 Jan 2018 15:41:59 -0500 Subject: [PATCH] Configurable Chunks Sends per Tick setting diff --git a/Spigot-Server-Patches/0226-Configurable-Max-Chunk-Gens-per-Tick.patch b/Spigot-Server-Patches/0226-Configurable-Max-Chunk-Gens-per-Tick.patch index b684d2b53f..c10e8e479c 100644 --- a/Spigot-Server-Patches/0226-Configurable-Max-Chunk-Gens-per-Tick.patch +++ b/Spigot-Server-Patches/0226-Configurable-Max-Chunk-Gens-per-Tick.patch @@ -1,4 +1,4 @@ -From ff9c3cccf23d85361f76ea3db31453532137959f Mon Sep 17 00:00:00 2001 +From 92cab28ad64ca7a9e872c15de45aaa49778ee048 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 1 Jan 2018 16:10:24 -0500 Subject: [PATCH] Configurable Max Chunk Gens per Tick diff --git a/Spigot-Server-Patches/0227-Make-max-squid-spawn-height-configurable.patch b/Spigot-Server-Patches/0227-Make-max-squid-spawn-height-configurable.patch index 93696ba05f..d43edf40ad 100644 --- a/Spigot-Server-Patches/0227-Make-max-squid-spawn-height-configurable.patch +++ b/Spigot-Server-Patches/0227-Make-max-squid-spawn-height-configurable.patch @@ -1,4 +1,4 @@ -From 0f811d854e26ae92eaf96b9be96a31844bfca523 Mon Sep 17 00:00:00 2001 +From d06a6cb5454b47db888922a8bab80350af829225 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 11 Jan 2018 16:47:28 -0600 Subject: [PATCH] Make max squid spawn height configurable diff --git a/Spigot-Server-Patches/0253-Configurable-sprint-interruption-on-attack.patch b/Spigot-Server-Patches/0253-Configurable-sprint-interruption-on-attack.patch index 1e24d78dd8..95468d9c36 100644 --- a/Spigot-Server-Patches/0253-Configurable-sprint-interruption-on-attack.patch +++ b/Spigot-Server-Patches/0253-Configurable-sprint-interruption-on-attack.patch @@ -1,4 +1,4 @@ -From be3db1127c4662fe631b1430e78f6452aeabac3b Mon Sep 17 00:00:00 2001 +From eb30549acbe531dd8a6bde60f7bc8c83298dbb68 Mon Sep 17 00:00:00 2001 From: Brokkonaut Date: Sat, 14 Apr 2018 20:20:46 +0200 Subject: [PATCH] Configurable sprint interruption on attack diff --git a/Spigot-Server-Patches/0257-Block-Enderpearl-Travel-Exploit.patch b/Spigot-Server-Patches/0257-Block-Enderpearl-Travel-Exploit.patch index 9f6238e2ad..03ac0d7e32 100644 --- a/Spigot-Server-Patches/0257-Block-Enderpearl-Travel-Exploit.patch +++ b/Spigot-Server-Patches/0257-Block-Enderpearl-Travel-Exploit.patch @@ -1,4 +1,4 @@ -From 1a1a27d62f8316a31d8f0ebff482451b0122a750 Mon Sep 17 00:00:00 2001 +From f9fd819490c278f5309385e64aed094e3131839a Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 30 Apr 2018 17:15:26 -0400 Subject: [PATCH] Block Enderpearl Travel Exploit diff --git a/Spigot-Server-Patches/0272-Make-shield-blocking-delay-configurable.patch b/Spigot-Server-Patches/0272-Make-shield-blocking-delay-configurable.patch index 8d69668166..10d6cd069c 100644 --- a/Spigot-Server-Patches/0272-Make-shield-blocking-delay-configurable.patch +++ b/Spigot-Server-Patches/0272-Make-shield-blocking-delay-configurable.patch @@ -1,4 +1,4 @@ -From d47df5ff77a58c85e2c6176b8366bd1ed215a50e Mon Sep 17 00:00:00 2001 +From 0b94f1c5d92f60e93fbfef7521300409e91882fb Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Sat, 16 Jun 2018 01:18:16 -0500 Subject: [PATCH] Make shield blocking delay configurable diff --git a/Spigot-Server-Patches/0282-Add-config-to-disable-ender-dragon-legacy-check.patch b/Spigot-Server-Patches/0282-Add-config-to-disable-ender-dragon-legacy-check.patch index 9546776cdc..3c2c46842b 100644 --- a/Spigot-Server-Patches/0282-Add-config-to-disable-ender-dragon-legacy-check.patch +++ b/Spigot-Server-Patches/0282-Add-config-to-disable-ender-dragon-legacy-check.patch @@ -1,4 +1,4 @@ -From 17fceb5202344b1f2a3759e757d7432e90eb9664 Mon Sep 17 00:00:00 2001 +From 8223ffb3d66d1778fa4cfb08af6aab35f5784e8a Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Fri, 22 Jun 2018 10:38:31 -0500 Subject: [PATCH] Add config to disable ender dragon legacy check diff --git a/Spigot-Server-Patches/0286-Configurable-Bed-Search-Radius.patch b/Spigot-Server-Patches/0286-Configurable-Bed-Search-Radius.patch index 14b60053dd..b4bad2c577 100644 --- a/Spigot-Server-Patches/0286-Configurable-Bed-Search-Radius.patch +++ b/Spigot-Server-Patches/0286-Configurable-Bed-Search-Radius.patch @@ -1,4 +1,4 @@ -From 98aea8bd07cb91cc8c2fec14401516da32b26cdb Mon Sep 17 00:00:00 2001 +From 1e525acb30342f5998d0b28a1bc4f32bab9d1f7f Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 4 Jul 2018 15:22:06 -0400 Subject: [PATCH] Configurable Bed Search Radius diff --git a/Spigot-Server-Patches/0299-Duplicate-UUID-Resolve-Option.patch b/Spigot-Server-Patches/0299-Duplicate-UUID-Resolve-Option.patch index c9f07456be..51b19fded2 100644 --- a/Spigot-Server-Patches/0299-Duplicate-UUID-Resolve-Option.patch +++ b/Spigot-Server-Patches/0299-Duplicate-UUID-Resolve-Option.patch @@ -1,4 +1,4 @@ -From 1b11c65966aa0ba8ac0d9c18c7cf1f87a3e16e37 Mon Sep 17 00:00:00 2001 +From 935ccef81ea9265bec68c0730db6730835cdf8ec Mon Sep 17 00:00:00 2001 From: Aikar Date: Sat, 21 Jul 2018 14:27:34 -0400 Subject: [PATCH] Duplicate UUID Resolve Option diff --git a/Spigot-Server-Patches/0304-Option-to-prevent-armor-stands-from-doing-entity-loo.patch b/Spigot-Server-Patches/0304-Option-to-prevent-armor-stands-from-doing-entity-loo.patch index 14f0e2edab..d00b81a484 100644 --- a/Spigot-Server-Patches/0304-Option-to-prevent-armor-stands-from-doing-entity-loo.patch +++ b/Spigot-Server-Patches/0304-Option-to-prevent-armor-stands-from-doing-entity-loo.patch @@ -1,4 +1,4 @@ -From d64ee7315bb5fab2c104860441b804b7b96a8f9d Mon Sep 17 00:00:00 2001 +From 4e29f3f5698d19db99f0269c5cc0818ab01efcd0 Mon Sep 17 00:00:00 2001 From: Hugo Manrique Date: Mon, 23 Jul 2018 12:57:39 +0200 Subject: [PATCH] Option to prevent armor stands from doing entity lookups diff --git a/Spigot-Server-Patches/0334-Allow-disabling-armour-stand-ticking.patch b/Spigot-Server-Patches/0334-Allow-disabling-armour-stand-ticking.patch index 12b6ea0f55..c1864b2b01 100644 --- a/Spigot-Server-Patches/0334-Allow-disabling-armour-stand-ticking.patch +++ b/Spigot-Server-Patches/0334-Allow-disabling-armour-stand-ticking.patch @@ -1,4 +1,4 @@ -From b9b3308e2e4b1558df9ad01f77f0ac0264161b8f Mon Sep 17 00:00:00 2001 +From 93d9a4f971a874f29871435fb5f1d7e8828a518e Mon Sep 17 00:00:00 2001 From: kashike Date: Wed, 15 Aug 2018 01:26:09 -0700 Subject: [PATCH] Allow disabling armour stand ticking diff --git a/Spigot-Server-Patches/0340-Optimize-Hoppers.patch b/Spigot-Server-Patches/0340-Optimize-Hoppers.patch index f70669f071..5dc14f4751 100644 --- a/Spigot-Server-Patches/0340-Optimize-Hoppers.patch +++ b/Spigot-Server-Patches/0340-Optimize-Hoppers.patch @@ -1,4 +1,4 @@ -From 0894620915a32a8197efd7a79b421436e584d209 Mon Sep 17 00:00:00 2001 +From 127dec9a00377cd18abfa142fce02f0390c7189e Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 27 Apr 2016 22:09:52 -0400 Subject: [PATCH] Optimize Hoppers diff --git a/Spigot-Server-Patches/0346-Anti-Xray.patch b/Spigot-Server-Patches/0346-Anti-Xray.patch index ef1df7cd9b..1cb4bde661 100644 --- a/Spigot-Server-Patches/0346-Anti-Xray.patch +++ b/Spigot-Server-Patches/0346-Anti-Xray.patch @@ -1,4 +1,4 @@ -From d3b5ed9a5b20b89e0e0787f9851c384b2ce6fae0 Mon Sep 17 00:00:00 2001 +From 66769dc5c9551799bdaae670be7a5a76757aad76 Mon Sep 17 00:00:00 2001 From: stonar96 Date: Mon, 20 Aug 2018 03:03:58 +0200 Subject: [PATCH] Anti-Xray diff --git a/Spigot-Server-Patches/0347-Configurable-speed-for-water-flowing-over-lava.patch b/Spigot-Server-Patches/0347-Configurable-speed-for-water-flowing-over-lava.patch index dccb788b2c..4de3cabb06 100644 --- a/Spigot-Server-Patches/0347-Configurable-speed-for-water-flowing-over-lava.patch +++ b/Spigot-Server-Patches/0347-Configurable-speed-for-water-flowing-over-lava.patch @@ -1,4 +1,4 @@ -From c09079953d5a37bee728718bdcf58b06e30edb23 Mon Sep 17 00:00:00 2001 +From d126a579b60542ea3c1d4404087c49f071f61d67 Mon Sep 17 00:00:00 2001 From: Byteflux Date: Wed, 8 Aug 2018 16:33:21 -0600 Subject: [PATCH] Configurable speed for water flowing over lava diff --git a/Spigot-Server-Patches/0361-Expose-attack-cooldown-methods-for-Player.patch b/Spigot-Server-Patches/0361-Expose-attack-cooldown-methods-for-Player.patch index 85b95eca13..e15916c6ab 100644 --- a/Spigot-Server-Patches/0361-Expose-attack-cooldown-methods-for-Player.patch +++ b/Spigot-Server-Patches/0361-Expose-attack-cooldown-methods-for-Player.patch @@ -1,4 +1,4 @@ -From 33323d1c602c9e8ad8f3555b076c85046c5c36e9 Mon Sep 17 00:00:00 2001 +From 273f60e3c5f99173ff335828eb8aa336b7b0f8e8 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Tue, 4 Sep 2018 15:02:00 -0500 Subject: [PATCH] Expose attack cooldown methods for Player diff --git a/Spigot-Server-Patches/0362-Fix-1420.patch b/Spigot-Server-Patches/0362-Fix-1420.patch index 91059cf9d3..f91cb95a64 100644 --- a/Spigot-Server-Patches/0362-Fix-1420.patch +++ b/Spigot-Server-Patches/0362-Fix-1420.patch @@ -1,11 +1,11 @@ -From 3aceaeba05125f97f921e157ba60732c39ef94a2 Mon Sep 17 00:00:00 2001 +From c42286bc5459f181eba0f0e65f4a35d65c556978 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Fri, 7 Sep 2018 18:28:24 -0500 Subject: [PATCH] Fix #1420 diff --git a/src/main/java/net/minecraft/server/EntityArrow.java b/src/main/java/net/minecraft/server/EntityArrow.java -index 187f02d4e4..fcb1cb36af 100644 +index a82dc0a94e..529629a867 100644 --- a/src/main/java/net/minecraft/server/EntityArrow.java +++ b/src/main/java/net/minecraft/server/EntityArrow.java @@ -492,6 +492,7 @@ public abstract class EntityArrow extends Entity implements IProjectile { diff --git a/Spigot-Server-Patches/0363-MC-2025-Save-and-load-entity-AABB-to-prevent-wobble.patch b/Spigot-Server-Patches/0363-MC-2025-Save-and-load-entity-AABB-to-prevent-wobble.patch index 2193e1af37..7e06569bc8 100644 --- a/Spigot-Server-Patches/0363-MC-2025-Save-and-load-entity-AABB-to-prevent-wobble.patch +++ b/Spigot-Server-Patches/0363-MC-2025-Save-and-load-entity-AABB-to-prevent-wobble.patch @@ -1,4 +1,4 @@ -From f0dc399ec0f1445d0d604bd8596995c8419a8efe Mon Sep 17 00:00:00 2001 +From f6eeb525c83010ea51ebef72b2e2f99baf32620d Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Tue, 4 Sep 2018 19:07:57 -0400 Subject: [PATCH] MC-2025: Save and load entity AABB to prevent wobble diff --git a/Spigot-Server-Patches/0364-Improve-death-events.patch b/Spigot-Server-Patches/0364-Improve-death-events.patch index 5da4305242..13da350f2d 100644 --- a/Spigot-Server-Patches/0364-Improve-death-events.patch +++ b/Spigot-Server-Patches/0364-Improve-death-events.patch @@ -1,4 +1,4 @@ -From 68235ad1887959ff32a779ad852e17538dd2610f Mon Sep 17 00:00:00 2001 +From 7c2386886de0581784c8c667ab82ae5eba08aba7 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Tue, 21 Aug 2018 01:39:35 +0100 Subject: [PATCH] Improve death events diff --git a/Spigot-Server-Patches/0365-Allow-chests-to-be-placed-with-NBT-data.patch b/Spigot-Server-Patches/0365-Allow-chests-to-be-placed-with-NBT-data.patch index 60ac0818ce..eac1f981a2 100644 --- a/Spigot-Server-Patches/0365-Allow-chests-to-be-placed-with-NBT-data.patch +++ b/Spigot-Server-Patches/0365-Allow-chests-to-be-placed-with-NBT-data.patch @@ -1,4 +1,4 @@ -From 034d33929c0ebe9a745be7d9398e7b09d9c6f5bd Mon Sep 17 00:00:00 2001 +From 14172537b21a454dbb7cc80cc9ecb311296c4043 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Sat, 8 Sep 2018 18:43:31 -0500 Subject: [PATCH] Allow chests to be placed with NBT data diff --git a/Spigot-Server-Patches/0366-Mob-Pathfinding-API.patch b/Spigot-Server-Patches/0366-Mob-Pathfinding-API.patch index d41be738f1..9372d104e5 100644 --- a/Spigot-Server-Patches/0366-Mob-Pathfinding-API.patch +++ b/Spigot-Server-Patches/0366-Mob-Pathfinding-API.patch @@ -1,4 +1,4 @@ -From 223f54e341aab667ed74e7bb256abac2b9029bef Mon Sep 17 00:00:00 2001 +From 6dc5e18901c4b3b5774ca4984b1209533d7bf015 Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 9 Sep 2018 13:30:00 -0400 Subject: [PATCH] Mob Pathfinding API diff --git a/Spigot-Server-Patches/0367-Prevent-chunk-loading-from-Fluid-Flowing.patch b/Spigot-Server-Patches/0367-Prevent-chunk-loading-from-Fluid-Flowing.patch index 3c7ee0fd7e..2a464fc4f4 100644 --- a/Spigot-Server-Patches/0367-Prevent-chunk-loading-from-Fluid-Flowing.patch +++ b/Spigot-Server-Patches/0367-Prevent-chunk-loading-from-Fluid-Flowing.patch @@ -1,4 +1,4 @@ -From bbcc0bdc761f668866673a819bc46e41c4ae88ad Mon Sep 17 00:00:00 2001 +From 9e1c9e2dd81743e37d5b747cbf4212f292f54f25 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 10 Sep 2018 23:36:16 -0400 Subject: [PATCH] Prevent chunk loading from Fluid Flowing diff --git a/Spigot-Server-Patches/0368-Prevent-pathfinding-from-loading-chunks.patch b/Spigot-Server-Patches/0368-Prevent-pathfinding-from-loading-chunks.patch index 5cbe240584..c2ca245755 100644 --- a/Spigot-Server-Patches/0368-Prevent-pathfinding-from-loading-chunks.patch +++ b/Spigot-Server-Patches/0368-Prevent-pathfinding-from-loading-chunks.patch @@ -1,4 +1,4 @@ -From 641693cea7e5475e0fafbd39d3c5b484e52153ab Mon Sep 17 00:00:00 2001 +From 853dd39389c58b51ad3b785f21297e184b914c1a Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 10 Sep 2018 23:52:28 -0400 Subject: [PATCH] Prevent pathfinding from loading chunks diff --git a/Spigot-Server-Patches/0369-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch b/Spigot-Server-Patches/0369-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch new file mode 100644 index 0000000000..06673be31f --- /dev/null +++ b/Spigot-Server-Patches/0369-Implement-an-API-for-CanPlaceOn-and-CanDestroy-NBT-v.patch @@ -0,0 +1,145 @@ +From fb168424520dbd77c3e78a2d2a5b1c369864a356 Mon Sep 17 00:00:00 2001 +From: Mark Vainomaa +Date: Wed, 12 Sep 2018 18:53:55 +0300 +Subject: [PATCH] Implement an API for CanPlaceOn and CanDestroy NBT values + + +diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +index b90a02ef6f..c9d4d45564 100644 +--- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java ++++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +@@ -252,6 +252,12 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + static final ItemMetaKey UNBREAKABLE = new ItemMetaKey("Unbreakable"); + @Specific(Specific.To.NBT) + static final ItemMetaKey DAMAGE = new ItemMetaKey("Damage"); ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ @Specific(Specific.To.NBT) ++ static final ItemMetaKey CAN_DESTROY = new ItemMetaKey("CanDestroy"); ++ @Specific(Specific.To.NBT) ++ static final ItemMetaKey CAN_PLACE_ON = new ItemMetaKey("CanPlaceOn"); ++ // Paper end + + private IChatBaseComponent displayName; + private IChatBaseComponent locName; +@@ -262,6 +268,10 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + private int hideFlag; + private boolean unbreakable; + private int damage; ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ private Set canPlaceOn = Sets.newHashSet(); ++ private Set canDestroy = Sets.newHashSet(); ++ // Paper end + + private static final Set HANDLED_TAGS = Sets.newHashSet(); + +@@ -292,6 +302,10 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + this.hideFlag = meta.hideFlag; + this.unbreakable = meta.unbreakable; + this.damage = meta.damage; ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ this.canDestroy = new java.util.HashSet<>(meta.canDestroy); ++ this.canPlaceOn = new java.util.HashSet<>(meta.canPlaceOn); ++ // Paper end + this.unhandledTags.putAll(meta.unhandledTags); + + this.internalTag = meta.internalTag; +@@ -347,6 +361,23 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + if (tag.hasKey(DAMAGE.NBT)) { + damage = tag.getInt(DAMAGE.NBT); + } ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ if (tag.hasKey(CAN_DESTROY.NBT)) { ++ NBTTagList list = tag.getList(CAN_DESTROY.NBT, CraftMagicNumbers.NBT.TAG_STRING); ++ for (int i = 0; i < list.size(); i++) { ++ Material material = Material.matchMaterial(list.getString(i), false); ++ this.canDestroy.add(material); ++ } ++ } ++ ++ if (tag.hasKey(CAN_PLACE_ON.NBT)) { ++ NBTTagList list = tag.getList(CAN_PLACE_ON.NBT, CraftMagicNumbers.NBT.TAG_STRING); ++ for (int i = 0; i < list.size(); i++) { ++ Material material = Material.matchMaterial(list.getString(i), false); ++ this.canPlaceOn.add(material); ++ } ++ } ++ // Paper end + + Set keys = tag.getKeys(); + for (String key : keys) { +@@ -567,6 +598,25 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + if (hasDamage()) { + itemTag.setInt(DAMAGE.NBT, damage); + } ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ if (!this.canPlaceOn.isEmpty()) { ++ List items = this.canPlaceOn.stream() ++ .map(Material::getKey) ++ .map(org.bukkit.NamespacedKey::toString) ++ .collect(java.util.stream.Collectors.toList()); ++ ++ itemTag.set(CAN_PLACE_ON.NBT, createStringList(items)); ++ } ++ ++ if (!this.canDestroy.isEmpty()) { ++ List items = this.canDestroy.stream() ++ .map(Material::getKey) ++ .map(org.bukkit.NamespacedKey::toString) ++ .collect(java.util.stream.Collectors.toList()); ++ ++ itemTag.set(CAN_DESTROY.NBT, createStringList(items)); ++ } ++ // Paper end + + for (Map.Entry e : unhandledTags.entrySet()) { + itemTag.set(e.getKey(), e.getValue()); +@@ -1231,7 +1281,9 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + CraftMetaArmorStand.NO_BASE_PLATE.NBT, + CraftMetaArmorStand.SHOW_ARMS.NBT, + CraftMetaArmorStand.SMALL.NBT, +- CraftMetaArmorStand.MARKER.NBT ++ CraftMetaArmorStand.MARKER.NBT, ++ CAN_DESTROY.NBT, ++ CAN_PLACE_ON.NBT + // Paper end + )); + } +@@ -1278,4 +1330,35 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { + return spigot; + } + // Spigot end ++ // Paper start - Implement an API for CanPlaceOn and CanDestroy NBT values ++ @Override ++ public Set getCanDestroy() { ++ return new java.util.HashSet<>(canDestroy); ++ } ++ ++ @Override ++ @SuppressWarnings("deprecation") ++ public void setCanDestroy(Set canDestroy) { ++ if (canDestroy.stream().anyMatch(Material::isLegacy)) { ++ throw new IllegalArgumentException("canDestroy set must not contain any legacy materials!"); ++ } ++ this.canDestroy.clear(); ++ this.canDestroy.addAll(canDestroy); ++ } ++ ++ @Override ++ public Set getCanPlaceOn() { ++ return new java.util.HashSet<>(canPlaceOn); ++ } ++ ++ @Override ++ @SuppressWarnings("deprecation") ++ public void setCanPlaceOn(Set canPlaceOn) { ++ if (canPlaceOn.stream().anyMatch(Material::isLegacy)) { ++ throw new IllegalArgumentException("canPlaceOn set must not contain any legacy materials!"); ++ } ++ this.canPlaceOn.clear(); ++ this.canPlaceOn.addAll(canPlaceOn); ++ } ++ // Paper end + } +-- +2.19.0 + diff --git a/Spigot-Server-Patches/0369-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch b/Spigot-Server-Patches/0370-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch similarity index 98% rename from Spigot-Server-Patches/0369-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch rename to Spigot-Server-Patches/0370-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch index 72574118ca..844e48b3bf 100644 --- a/Spigot-Server-Patches/0369-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch +++ b/Spigot-Server-Patches/0370-Prevent-Mob-AI-Rules-from-Loading-Chunks.patch @@ -1,4 +1,4 @@ -From 0634a8db05885476afd66f777c119571a83fc5d4 Mon Sep 17 00:00:00 2001 +From 96ec3b35d9101927da6d4bb7cdc596d43559b310 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 10 Sep 2018 23:56:36 -0400 Subject: [PATCH] Prevent Mob AI Rules from Loading Chunks diff --git a/Spigot-Server-Patches/0370-Prevent-mob-spawning-from-loading-generating-chunks.patch b/Spigot-Server-Patches/0371-Prevent-mob-spawning-from-loading-generating-chunks.patch similarity index 97% rename from Spigot-Server-Patches/0370-Prevent-mob-spawning-from-loading-generating-chunks.patch rename to Spigot-Server-Patches/0371-Prevent-mob-spawning-from-loading-generating-chunks.patch index 25fe09b9ec..422b34202c 100644 --- a/Spigot-Server-Patches/0370-Prevent-mob-spawning-from-loading-generating-chunks.patch +++ b/Spigot-Server-Patches/0371-Prevent-mob-spawning-from-loading-generating-chunks.patch @@ -1,4 +1,4 @@ -From 4c64742d8da6231825a8fa0325bb31b89138f327 Mon Sep 17 00:00:00 2001 +From 2dcf4acbf2012b8d029ad63310fe0304e8b47f1d Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 12 Sep 2018 21:12:57 -0400 Subject: [PATCH] Prevent mob spawning from loading/generating chunks diff --git a/Spigot-Server-Patches/0371-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch b/Spigot-Server-Patches/0372-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch similarity index 98% rename from Spigot-Server-Patches/0371-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch rename to Spigot-Server-Patches/0372-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch index 131502f3a8..31e6d351c8 100644 --- a/Spigot-Server-Patches/0371-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch +++ b/Spigot-Server-Patches/0372-Optimize-Biome-Mob-Lookups-for-Mob-Spawning.patch @@ -1,4 +1,4 @@ -From 9c9fc86659689894cb0039e4b1195fa54f40502f Mon Sep 17 00:00:00 2001 +From b2098f05989bf94af2a4c9745bb8a968887884ed Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 12 Sep 2018 21:47:01 -0400 Subject: [PATCH] Optimize Biome Mob Lookups for Mob Spawning diff --git a/Spigot-Server-Patches/0372-MC-136886-Don-t-load-chunks-looking-for-features.patch b/Spigot-Server-Patches/0373-MC-136886-Don-t-load-chunks-looking-for-features.patch similarity index 94% rename from Spigot-Server-Patches/0372-MC-136886-Don-t-load-chunks-looking-for-features.patch rename to Spigot-Server-Patches/0373-MC-136886-Don-t-load-chunks-looking-for-features.patch index 80ed721039..206c1b4f8d 100644 --- a/Spigot-Server-Patches/0372-MC-136886-Don-t-load-chunks-looking-for-features.patch +++ b/Spigot-Server-Patches/0373-MC-136886-Don-t-load-chunks-looking-for-features.patch @@ -1,4 +1,4 @@ -From 707e751ef2330fe64cb9b8782c5fbf9584328640 Mon Sep 17 00:00:00 2001 +From 8fd95b755bd88dcd58ca5403dd85096747340421 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 13 Sep 2018 22:26:54 -0400 Subject: [PATCH] MC-136886: Don't load chunks looking for features diff --git a/Spigot-Server-Patches/0373-Optimize-and-Fix-ExpiringMap-Issues.patch b/Spigot-Server-Patches/0374-Optimize-and-Fix-ExpiringMap-Issues.patch similarity index 99% rename from Spigot-Server-Patches/0373-Optimize-and-Fix-ExpiringMap-Issues.patch rename to Spigot-Server-Patches/0374-Optimize-and-Fix-ExpiringMap-Issues.patch index 7b8a02047e..d442e74302 100644 --- a/Spigot-Server-Patches/0373-Optimize-and-Fix-ExpiringMap-Issues.patch +++ b/Spigot-Server-Patches/0374-Optimize-and-Fix-ExpiringMap-Issues.patch @@ -1,4 +1,4 @@ -From 5aaf6888330a14eb08fcce67de0e5b09b6222cc8 Mon Sep 17 00:00:00 2001 +From 4b72c68d1947dece956e521879a05cc2e1fc17aa Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 16 Sep 2018 00:00:16 -0400 Subject: [PATCH] Optimize and Fix ExpiringMap Issues diff --git a/Spigot-Server-Patches/0374-Implement-furnace-cook-speed-multiplier-API.patch b/Spigot-Server-Patches/0375-Implement-furnace-cook-speed-multiplier-API.patch similarity index 98% rename from Spigot-Server-Patches/0374-Implement-furnace-cook-speed-multiplier-API.patch rename to Spigot-Server-Patches/0375-Implement-furnace-cook-speed-multiplier-API.patch index 3804ee1211..d6642dd2cf 100644 --- a/Spigot-Server-Patches/0374-Implement-furnace-cook-speed-multiplier-API.patch +++ b/Spigot-Server-Patches/0375-Implement-furnace-cook-speed-multiplier-API.patch @@ -1,4 +1,4 @@ -From 84c50e8b79469f1609a70f1c90504902fe10420b Mon Sep 17 00:00:00 2001 +From 9cd4fe1400c656db6b44b26d2e883c1a7e3c75ed Mon Sep 17 00:00:00 2001 From: Tassu Date: Thu, 13 Sep 2018 08:45:21 +0300 Subject: [PATCH] Implement furnace cook speed multiplier API diff --git a/Spigot-Server-Patches/0375-Support-Overriding-World-Seeds.patch b/Spigot-Server-Patches/0376-Support-Overriding-World-Seeds.patch similarity index 98% rename from Spigot-Server-Patches/0375-Support-Overriding-World-Seeds.patch rename to Spigot-Server-Patches/0376-Support-Overriding-World-Seeds.patch index 19475975b9..bb7896e270 100644 --- a/Spigot-Server-Patches/0375-Support-Overriding-World-Seeds.patch +++ b/Spigot-Server-Patches/0376-Support-Overriding-World-Seeds.patch @@ -1,4 +1,4 @@ -From 9ce08b8a9ec3af87ab649b2b24b48a3ed34633b4 Mon Sep 17 00:00:00 2001 +From a79d0cd5a53147b050963a5b5ed4bd51adda55f5 Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 17 Sep 2018 23:05:31 -0400 Subject: [PATCH] Support Overriding World Seeds diff --git a/Spigot-Server-Patches/0376-Optimize-Server-World-Map.patch b/Spigot-Server-Patches/0377-Optimize-Server-World-Map.patch similarity index 99% rename from Spigot-Server-Patches/0376-Optimize-Server-World-Map.patch rename to Spigot-Server-Patches/0377-Optimize-Server-World-Map.patch index 6cfd60734f..c4939fd98d 100644 --- a/Spigot-Server-Patches/0376-Optimize-Server-World-Map.patch +++ b/Spigot-Server-Patches/0377-Optimize-Server-World-Map.patch @@ -1,4 +1,4 @@ -From 07e138b1a3b1fc41b26822cb7df92fbce0e9443a Mon Sep 17 00:00:00 2001 +From 7547c08ec67686b4a45d51394f519f6e62274ebb Mon Sep 17 00:00:00 2001 From: Aikar Date: Mon, 17 Sep 2018 23:37:31 -0400 Subject: [PATCH] Optimize Server World Map diff --git a/Spigot-Server-Patches/0377-PreSpawnerSpawnEvent.patch b/Spigot-Server-Patches/0378-PreSpawnerSpawnEvent.patch similarity index 96% rename from Spigot-Server-Patches/0377-PreSpawnerSpawnEvent.patch rename to Spigot-Server-Patches/0378-PreSpawnerSpawnEvent.patch index dd00fb3467..f093ff7296 100644 --- a/Spigot-Server-Patches/0377-PreSpawnerSpawnEvent.patch +++ b/Spigot-Server-Patches/0378-PreSpawnerSpawnEvent.patch @@ -1,4 +1,4 @@ -From 50beca89f83a09478bb3f69ad9ea3dd528f0b07a Mon Sep 17 00:00:00 2001 +From c577bdb2c893529009c611e2e73c668b17c74f11 Mon Sep 17 00:00:00 2001 From: Phoenix616 Date: Tue, 18 Sep 2018 23:53:23 +0100 Subject: [PATCH] PreSpawnerSpawnEvent diff --git a/Spigot-Server-Patches/0378-MC-134115-Fix-Double-Chest-Conversion-Error.patch b/Spigot-Server-Patches/0379-MC-134115-Fix-Double-Chest-Conversion-Error.patch similarity index 98% rename from Spigot-Server-Patches/0378-MC-134115-Fix-Double-Chest-Conversion-Error.patch rename to Spigot-Server-Patches/0379-MC-134115-Fix-Double-Chest-Conversion-Error.patch index d91cbf91b4..f9860f54f1 100644 --- a/Spigot-Server-Patches/0378-MC-134115-Fix-Double-Chest-Conversion-Error.patch +++ b/Spigot-Server-Patches/0379-MC-134115-Fix-Double-Chest-Conversion-Error.patch @@ -1,4 +1,4 @@ -From 36468491f2d0e76cf1f2f911d3fd57bb1d8fb0e1 Mon Sep 17 00:00:00 2001 +From 4f2b4578fee42ea0b9cf659046e0a2e65e9ff6a0 Mon Sep 17 00:00:00 2001 From: Aikar Date: Thu, 20 Sep 2018 19:11:33 -0400 Subject: [PATCH] MC-134115: Fix Double Chest Conversion Error diff --git a/Spigot-Server-Patches/0379-Sync-Player-Position-to-Vehicles.patch b/Spigot-Server-Patches/0380-Sync-Player-Position-to-Vehicles.patch similarity index 96% rename from Spigot-Server-Patches/0379-Sync-Player-Position-to-Vehicles.patch rename to Spigot-Server-Patches/0380-Sync-Player-Position-to-Vehicles.patch index da9e238634..85269ffb01 100644 --- a/Spigot-Server-Patches/0379-Sync-Player-Position-to-Vehicles.patch +++ b/Spigot-Server-Patches/0380-Sync-Player-Position-to-Vehicles.patch @@ -1,4 +1,4 @@ -From 64eb5047c6309f9308bbb948fa7709f6952f17c6 Mon Sep 17 00:00:00 2001 +From fa5b6152426b80eafe26fabee4a477bea89afd27 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 21 Sep 2018 11:34:00 -0400 Subject: [PATCH] Sync Player Position to Vehicles diff --git a/Spigot-Server-Patches/0380-Spigot-PR-493.patch b/Spigot-Server-Patches/0381-Spigot-PR-493.patch similarity index 93% rename from Spigot-Server-Patches/0380-Spigot-PR-493.patch rename to Spigot-Server-Patches/0381-Spigot-PR-493.patch index f2ca2de0e2..0bed974709 100644 --- a/Spigot-Server-Patches/0380-Spigot-PR-493.patch +++ b/Spigot-Server-Patches/0381-Spigot-PR-493.patch @@ -1,14 +1,14 @@ -From 103d2ac19c460d07c1d86e28a458bab6e431c88b Mon Sep 17 00:00:00 2001 +From 5832e96cb9edff3b381bb51504a858329da67505 Mon Sep 17 00:00:00 2001 From: Senmori Date: Sat, 22 Sep 2018 12:55:43 -0400 Subject: [PATCH] Spigot PR 493 diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -index b90a02ef6f..55afe8382c 100644 +index c9d4d45564..d928119254 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftMetaItem.java -@@ -392,22 +392,34 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { +@@ -423,22 +423,34 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { continue; } net.minecraft.server.AttributeModifier nmsModifier = GenericAttributes.a(entry); @@ -48,7 +48,7 @@ index b90a02ef6f..55afe8382c 100644 attribMod = new AttributeModifier(attribMod.getUniqueId(), attribMod.getName(), attribMod.getAmount(), attribMod.getOperation(), slot); } -@@ -617,10 +629,14 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { +@@ -667,10 +679,14 @@ class CraftMetaItem implements ItemMeta, Damageable, Repairable { } net.minecraft.server.AttributeModifier nmsModifier = CraftAttributeInstance.convert(entry.getValue()); NBTTagCompound sub = GenericAttributes.a(nmsModifier); diff --git a/Spigot-Server-Patches/0381-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch b/Spigot-Server-Patches/0382-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch similarity index 96% rename from Spigot-Server-Patches/0381-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch rename to Spigot-Server-Patches/0382-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch index 6e41cc46b8..4914d1ad07 100644 --- a/Spigot-Server-Patches/0381-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch +++ b/Spigot-Server-Patches/0382-Return-null-if-we-get-a-ParseException-in-IChatBaseC.patch @@ -1,4 +1,4 @@ -From 353f3324ebd9b865b078e5c67fdda196e3de5080 Mon Sep 17 00:00:00 2001 +From 62f6c5bbeaf52d39e1009c1c024c1acac9f5926a Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sat, 22 Sep 2018 15:56:59 -0400 Subject: [PATCH] Return null if we get a ParseException in IChatBaseComponent