Paper/Spigot-API-Patches
BillyGalbreath 56569f7812 1.13: Slime Patherfinder Events (#1246)
Replaces PR #1161 for 1.13

Resolves #930 

Adds new slime pathfinder related events. All events can be cancelled.
- `SlimePathfindEvent` is the base event of all added events. Cancelling this event will cancel all pathfinders.
- `SlimeWanderEvent` is called when slimes wander around by either swimming or moving/jumping forward. Cancelling this event will prevent slimes from moving around and jumping, but they will still look around and target players.
- `SlimeSwimEvent`is called when slimes are swimming in water/lava. Cancelling will prevent the slimes from moving/jumping in water/lava.
- `SlimeChangeDirectionEvent` is called when a slime changes directions. It contains the new `yaw` position the slime wants to change to, and it can be set to another value. Cancelling this event will prevent slimes from changing directions (except for when targeting players).
- `SlimeTargetLivingEntityEvent` is called when a slime targets a player. NMS uses EntityLiving here so it is named this. Contains the LivingEntity the slime has targeted. Cancelling this event will prevent the slime from targeting the entity and will make it lose current focus.

Adds `Slime#canWander()` and `Slime#setWander(boolean)` for a more persistent control (does not persist server restarts) over all 4 pathfinder types without the spammy event having to be cancelled a bajillion times a second.

Video demonstration: https://youtu.be/8hcLqazmO28

Test plugin: https://pastebin.com/cFgcgdWV
2018-08-24 10:40:14 -04:00
..
0001-POM-changes.patch [Auto] Updated Upstream (Bukkit) 2018-08-15 02:15:28 -04:00
0002-add-Trove-and-FastUtil-to-Bukkit.patch Rebuild Patches 2018-07-28 22:15:52 -05:00
0003-Timings-v2.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0004-Player-affects-spawning-API.patch Updated Upstream (Bukkit/CraftBukkit/Spigot) 2018-08-12 02:08:09 -04:00
0005-Add-getTPS-method.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0006-Entity-Origin-API.patch Don't reset current tick based on system time 2018-08-10 15:27:42 +01:00
0007-Check-Paper-versions.patch Don't reset current tick based on system time 2018-08-10 15:27:42 +01:00
0008-Add-PlayerLocaleChangeEvent.patch Don't reset current tick based on system time 2018-08-10 15:27:42 +01:00
0009-Add-player-view-distance-API.patch Updated Upstream (Bukkit/CraftBukkit/Spigot) 2018-08-12 02:08:09 -04:00
0010-Add-BeaconEffectEvent.patch Put the decompile fixes into MC Dev Fixes patch 2018-07-23 13:10:06 -04:00
0011-Add-PlayerInitialSpawnEvent.patch NOT FINISHED! She compiles, and she... suffers the wrath of chunkgen... 2018-07-19 05:42:43 +01:00
0012-Automatically-disable-plugins-that-fail-to-load.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0013-Expose-server-CommandMap.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0014-Graduate-bungeecord-chat-API-from-spigot-subclasses.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0015-Player-Tab-List-and-Title-APIs.patch update upstream 2018-07-29 12:42:07 -04:00
0016-Add-exception-reporting-event.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0017-Fix-ServerListPingEvent-flagging-as-Async.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0018-Add-BaseComponent-sendMessage-methods-to-CommandSend.patch update upstream 2018-07-29 12:42:07 -04:00
0019-Add-methods-for-working-with-arrows-stuck-in-living-.patch Update upstream 2018-08-01 22:49:47 -04:00
0020-Complete-resource-pack-API.patch Updated Upstream (Bukkit/CraftBukkit/Spigot) 2018-08-12 02:08:09 -04:00
0021-Use-ASM-for-event-executors.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0022-Add-a-call-helper-to-Event.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0023-Add-sender-name-to-commands.yml-replacement.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0024-Add-command-to-reload-permissions.yml-and-require-co.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0025-Custom-replacement-for-eaten-items.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0026-Access-items-by-EquipmentSlot.patch [Auto] Updated Upstream (Bukkit) 2018-08-19 00:29:35 -04:00
0027-Entity-AddTo-RemoveFrom-World-Events.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0028-EntityPathfindEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0029-Reduce-thread-synchronization-in-MetadataStoreBase.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0030-Add-MetadataStoreBase.removeAll-Plugin.patch Rebuild Patches 2018-07-28 22:15:52 -05:00
0031-Add-PlayerUseUnknownEntityEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0032-Add-handshake-event-to-allow-plugins-to-handle-clien.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0033-Arrow-pickup-rule-API.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0034-EntityRegainHealthEvent-isFastRegen-API.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0035-LootTable-API.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0036-Add-EntityZapEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0037-Misc-Utils.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0038-Allow-Reloading-of-Command-Aliases.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0039-Add-source-to-PlayerExpChangeEvent.patch Rebuild Patches 2018-07-28 22:15:52 -05:00
0040-Add-ProjectileCollideEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0041-Add-String-based-Action-Bar-API.patch Updated Upstream (Bukkit/CraftBukkit/Spigot) 2018-08-12 02:08:09 -04:00
0042-Add-API-methods-to-control-if-armour-stands-can-move.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0043-IllegalPacketEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0044-Fireworks-API-s.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0045-PlayerTeleportEndGatewayEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0046-Provide-E-TE-Chunk-count-stat-methods.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0047-ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0048-Expose-WorldBorder-isInBounds-Location-check.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0049-Add-configuration-option-to-prevent-player-names-fro.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0050-Fix-upstream-javadoc-warnings-and-errors.patch Cleanup javadoc warnings for 1.13 2018-08-17 05:29:16 +01:00
0051-Item-canEntityPickup.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0052-PlayerPickupItemEvent-setFlyAtPlayer.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0053-PlayerAttemptPickupItemEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0054-Add-UnknownCommandEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0055-Basic-PlayerProfile-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0056-Shoulder-Entities-Release-API.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0057-Profile-Lookup-Events.patch Move part of last change into proper file 2018-07-25 21:55:25 -05:00
0058-Entity-fromMobSpawner.patch Update Upstream 2018-07-30 01:08:59 -04:00
0059-Improve-the-Saddle-API-for-Horses.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0060-ensureServerConversions-API.patch Update upstream 2018-07-25 19:05:07 -04:00
0061-Add-getI18NDisplayName-API.patch Update upstream 2018-07-25 19:05:07 -04:00
0062-ProfileWhitelistVerifyEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0063-Make-plugins-list-alphabetical.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0064-LivingEntity-setKiller.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0065-Handle-plugin-prefixes-in-implementation-logging-con.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0066-Allow-plugins-to-use-SLF4J-for-logging.patch Remove deprecated AuthLib API from Paper-API 2018-07-25 21:49:43 -05:00
0067-Add-workaround-for-plugins-modifying-the-parent-of-t.patch Update upstream 2018-07-29 22:16:15 -04:00
0068-Add-PlayerJumpEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0069-Expose-client-protocol-version-and-virtual-host.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0070-Add-PlayerArmorChangeEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0071-API-to-get-a-BlockState-without-a-snapshot.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0072-AsyncTabCompleteEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0073-Display-warning-on-deprecated-recipe-API.patch [Auto] Updated Upstream (Bukkit/CraftBukkit) 2018-08-17 06:49:39 -04:00
0074-PlayerPickupExperienceEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0075-ExperienceOrbMergeEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0076-Ability-to-apply-mending-to-XP-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0077-PreCreatureSpawnEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0078-PlayerNaturallySpawnCreaturesEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0079-Add-setPlayerProfile-API-for-Skulls.patch [1.13] Skull block profile api (#1308) 2018-08-06 01:24:55 -04:00
0080-Fill-Profile-Property-Events.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0081-PlayerAdvancementCriterionGrantEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0082-Add-ArmorStand-Item-Meta.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0083-Optimize-Hoppers.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0084-Tameable-getOwnerUniqueId-API.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0085-Ability-to-change-PlayerProfile-in-AsyncPreLoginEven.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0086-Add-extended-PaperServerListPingEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0087-Player.setPlayerProfile-API.patch Updated Upstream (Bukkit/CraftBukkit/Spigot) 2018-08-12 02:08:09 -04:00
0088-getPlayerUniqueId-API.patch Updated Upstream (Bukkit/CraftBukkit) for LootTable API 2018-08-12 13:11:13 -04:00
0089-Add-legacy-ping-support-to-PaperServerListPingEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0090-Add-method-to-open-already-placed-sign.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0091-Add-version-history-to-version-command.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0092-Add-Ban-Methods-to-Player-Objects.patch update upstream 2018-07-29 12:42:07 -04:00
0093-EndermanEscapeEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0094-Enderman.teleportRandomly.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0095-Additional-world.getNearbyEntities-API-s.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0096-Location.isChunkLoaded-API.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0097-Expand-World.spawnParticle-API-and-add-Builder.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0098-EndermanAttackPlayerEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0099-Close-Plugin-Class-Loaders-on-Disable.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0100-WitchConsumePotionEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0101-WitchThrowPotionEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0102-Location.toBlockLocation-toCenterLocation.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0103-PotionEffect-clone-methods.patch remove PotionEffect color API as it was removed upstream 2018-08-03 21:23:57 -04:00
0104-WitchReadyPotionEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0105-ItemStack-getMaxItemUseDuration.patch Update upstream 2018-07-25 19:05:07 -04:00
0106-Add-EntityTeleportEndGatewayEvent.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0107-Add-SentientNPC-Interface-to-Entities.patch Updated Upstream (Bukkit/CraftBukkit), deprecate SentientNPC API 2018-08-10 22:20:59 -04:00
0108-Make-shield-blocking-delay-configurable.patch Update upstream 2018-08-01 22:49:47 -04:00
0109-EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0110-Add-getNearbyXXX-methods-to-Location.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0111-PlayerReadyArrowEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0112-Add-EntityKnockbackByEntityEvent.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0113-Expand-Explosions-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0114-ItemStack-API-additions-for-quantity-flags-lore.patch Update upstream 2018-07-25 19:05:07 -04:00
0115-LivingEntity-Hand-Raised-Item-Use-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0116-RangedEntity-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0117-Improve-ProjectileHitEvent-to-include-the-BlockFace-.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0118-Add-World.getEntity-UUID-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0119-InventoryCloseEvent-Reason-API.patch Merge branch 'master' into pre/1.13 2018-08-17 05:10:45 +01:00
0120-Entity-getChunk-API.patch Update Upstream 2018-07-30 01:08:59 -04:00
0121-Vex-getSummoner-API.patch Updated Upstream (Bukkit/CraftBukkit), deprecate SentientNPC API 2018-08-10 22:20:59 -04:00
0122-Add-an-asterisk-to-legacy-API-plugins.patch [Auto] Updated Upstream (Bukkit/CraftBukkit) 2018-08-11 03:49:37 -04:00
0123-Use-specific-1.13-versioning-branch-build-name.patch Update B/CB/S 2018-07-23 09:44:57 +01:00
0124-Add-async-chunk-load-API.patch Rebuild Patches 2018-07-28 22:15:52 -05:00
0125-EnderDragon-Events.patch Cleanup javadoc warnings for 1.13 2018-08-17 05:29:16 +01:00
0126-PlayerLaunchProjectileEvent.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0127-PlayerElytraBoostEvent.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0128-EntityTransformedEvent.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0129-Allow-disabling-armour-stand-ticking.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0130-SkeletonHorse-Additions.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0131-Expand-Location-Manipulation-API.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0132-Expand-ArmorStand-API.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0133-AnvilDamageEvent.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0134-Add-hand-to-bucket-events.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0135-Add-TNTPrimeEvent.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0136-Provide-Chunk-Coordinates-as-a-Long-API.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0137-Make-EnderDragon-extend-Mob.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0138-Ability-to-get-Tile-Entities-from-a-chunk-without-sn.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0139-Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch [CI-SKIP] [Auto] Rebuild Patches 2018-08-17 18:01:37 -04:00
0140-Allow-Blocks-to-be-accessed-via-a-long-key.patch Merge branch 'master' into pre/1.13 2018-08-19 11:53:05 -04:00
0141-Slime-Pathfinder-Events.patch 1.13: Slime Patherfinder Events (#1246) 2018-08-24 10:40:14 -04:00