1
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-07-25 01:02:01 -07:00
Files
.github
Spigot-API-Patches
API-to-get-a-BlockState-without-a-snapshot.patch
Ability-to-apply-mending-to-XP-API.patch
Ability-to-change-PlayerProfile-in-AsyncPreLoginEven.patch
Ability-to-get-Tile-Entities-from-a-chunk-without-sn.patch
Access-items-by-EquipmentSlot.patch
Add-API-methods-to-control-if-armour-stands-can-move.patch
Add-APIs-to-replace-OfflinePlayer-getLastPlayed.patch
Add-ArmorStand-Item-Meta.patch
Add-Ban-Methods-to-Player-Objects.patch
Add-BaseComponent-sendMessage-methods-to-CommandSend.patch
Add-BeaconEffectEvent.patch
Add-EntityKnockbackByEntityEvent.patch
Add-EntityTeleportEndGatewayEvent.patch
Add-EntityZapEvent.patch
Add-FastUtil-to-Bukkit.patch
Add-ItemStackRecipeChoice-Draft-API.patch
Add-LivingEntity-getTargetEntity.patch
Add-Material-Tags.patch
Add-MetadataStoreBase.removeAll-Plugin.patch
Add-More-Creeper-API.patch
Add-PhantomPreSpawnEvent.patch
Add-PlayerArmorChangeEvent.patch
Add-PlayerConnectionCloseEvent.patch
Add-PlayerInitialSpawnEvent.patch
Add-PlayerJumpEvent.patch
Add-PlayerLocaleChangeEvent.patch
Add-PlayerUseUnknownEntityEvent.patch
Add-ProjectileCollideEvent.patch
Add-String-based-Action-Bar-API.patch
Add-TNTPrimeEvent.patch
Add-UnknownCommandEvent.patch
Add-World.getEntity-UUID-API.patch
Add-a-call-helper-to-Event.patch
Add-an-API-for-CanPlaceOn-and-CanDestroy-NBT-values.patch
Add-an-asterisk-to-legacy-API-plugins.patch
Add-command-to-reload-permissions.yml-and-require-co.patch
Add-configuration-option-to-prevent-player-names-fro.patch
Add-exception-reporting-event.patch
Add-extended-PaperServerListPingEvent.patch
Add-getI18NDisplayName-API.patch
Add-getNearbyXXX-methods-to-Location.patch
Add-getTPS-method.patch
Add-hand-to-bucket-events.patch
Add-handshake-event-to-allow-plugins-to-handle-clien.patch
Add-legacy-ping-support-to-PaperServerListPingEvent.patch
Add-method-to-open-already-placed-sign.patch
Add-methods-for-working-with-arrows-stuck-in-living-.patch
Add-more-Witch-API.patch
Add-more-Zombie-API.patch
Add-player-view-distance-API.patch
Add-ray-tracing-methods-to-LivingEntity.patch
Add-sender-name-to-commands.yml-replacement.patch
Add-setPlayerProfile-API-for-Skulls.patch
Add-source-block-to-BlockPhysicsEvent.patch
Add-source-to-PlayerExpChangeEvent.patch
Add-spectator-target-events.patch
Add-sun-related-API.patch
Add-version-history-to-version-command.patch
Add-workaround-for-plugins-modifying-the-parent-of-t.patch
Additional-world.getNearbyEntities-API-s.patch
Allow-Blocks-to-be-accessed-via-a-long-key.patch
Allow-Reloading-of-Command-Aliases.patch
Allow-disabling-armour-stand-ticking.patch
Allow-plugins-to-use-SLF4J-for-logging.patch
Allow-setting-the-vex-s-summoner.patch
AnvilDamageEvent.patch
Arrow-pickup-rule-API.patch
Async-Chunks-API.patch
AsyncTabCompleteEvent.patch
Automatically-disable-plugins-that-fail-to-load.patch
Basic-PlayerProfile-API.patch
Change-the-reserved-channel-check-to-be-sensible.patch
Check-Paper-versions.patch
Close-Plugin-Class-Loaders-on-Disable.patch
Complete-resource-pack-API.patch
Custom-replacement-for-eaten-items.patch
Display-warning-on-deprecated-recipe-API.patch
Don-t-use-snapshots-for-Timings-Tile-Entity-reports.patch
EnderDragon-Events.patch
Enderman.teleportRandomly.patch
EndermanAttackPlayerEvent.patch
EndermanEscapeEvent.patch
Entity-AddTo-RemoveFrom-World-Events.patch
Entity-Origin-API.patch
Entity-fromMobSpawner.patch
Entity-getChunk-API.patch
EntityPathfindEvent.patch
EntityRegainHealthEvent-isFastRegen-API.patch
EntityShootBowEvent-consumeArrow-and-getArrowItem-AP.patch
EntityTransformedEvent.patch
Expand-ArmorStand-API.patch
Expand-Explosions-API.patch
Expand-Location-Manipulation-API.patch
Expand-World.spawnParticle-API-and-add-Builder.patch
ExperienceOrbMergeEvent.patch
ExperienceOrbs-API-for-Reason-Source-Triggering-play.patch
Expose-WorldBorder-isInBounds-Location-check.patch
Expose-attack-cooldown-methods-for-Player.patch
Expose-client-protocol-version-and-virtual-host.patch
Expose-server-CommandMap.patch
Fill-Profile-Property-Events.patch
Fireworks-API-s.patch
Fix-ServerListPingEvent-flagging-as-Async.patch
Fix-upstream-javadoc-warnings-and-errors.patch
Graduate-bungeecord-chat-API-from-spigot-subclasses.patch
Handle-plugin-prefixes-in-implementation-logging-con.patch
Here-s-Johnny.patch
IllegalPacketEvent.patch
Implement-furnace-cook-speed-multiplier-API.patch
Implement-getters-and-setters-for-EntityItem-owner-a.patch
Improve-death-events.patch
Improve-the-Saddle-API-for-Horses.patch
Inventory-removeItemAnySlot.patch
InventoryCloseEvent-Reason-API.patch
Item-canEntityPickup.patch
ItemStack-API-additions-for-quantity-flags-lore.patch
ItemStack-getMaxItemUseDuration.patch
LivingEntity-Hand-Raised-Item-Use-API.patch
LivingEntity-setKiller.patch
Location.isChunkLoaded-API.patch
Location.toBlockLocation-toCenterLocation.patch
LootTable-API.patch
Make-EnderDragon-extend-Mob.patch
Make-plugins-list-alphabetical.patch
Make-shield-blocking-delay-configurable.patch
Make-the-default-permission-message-configurable.patch
Material-API-additions.patch
Misc-Utils.patch
Mob-Pathfinding-API.patch
Optimize-Hoppers.patch
POM-changes.patch
Performance-Concurrency-Improvements-to-Permissions.patch
Player-Tab-List-and-Title-APIs.patch
Player-affects-spawning-API.patch
Player.setPlayerProfile-API.patch
PlayerAdvancementCriterionGrantEvent.patch
PlayerAttemptPickupItemEvent.patch
PlayerElytraBoostEvent.patch
PlayerLaunchProjectileEvent.patch
PlayerNaturallySpawnCreaturesEvent.patch
PlayerPickupExperienceEvent.patch
PlayerPickupItemEvent-setFlyAtPlayer.patch
PlayerReadyArrowEvent.patch
PlayerTeleportEndGatewayEvent.patch
PotionEffect-clone-methods.patch
PreCreatureSpawnEvent.patch
PreSpawnerSpawnEvent.patch
Profile-Lookup-Events.patch
ProfileWhitelistVerifyEvent.patch
Provide-Chunk-Coordinates-as-a-Long-API.patch
Provide-E-TE-Chunk-count-stat-methods.patch
RangedEntity-API.patch
Reduce-thread-synchronization-in-MetadataStoreBase.patch
Remove-Precondition-on-name-for-AttributeModifier.patch
Remove-deadlock-risk-in-firing-async-events.patch
Shoulder-Entities-Release-API.patch
SkeletonHorse-Additions.patch
Slime-Pathfinder-Events.patch
Support-cancellation-supression-of-EntityDismount-Ve.patch
Tameable-getOwnerUniqueId-API.patch
Timings-v2.patch
Turtle-API.patch
Use-ASM-for-event-executors.patch
Vex-getSummoner-API.patch
WitchConsumePotionEvent.patch
WitchReadyPotionEvent.patch
WitchThrowPotionEvent.patch
ensureServerConversions-API.patch
getPlayerUniqueId-API.patch
isChunkGenerated-API.patch
Spigot-Server-Patches
licenses
scripts
work
.editorconfig
.gitignore
.gitmodules
.travis.yml
CONTRIBUTING.md
LICENSE.md
README.md
paper
pom.xml
paper-mc/Spigot-API-Patches/Add-World.getEntity-UUID-API.patch
Shane Freeder f914571408 Updated Upstream (Bukkit/CraftBukkit)
Upstream has released updates that appears 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:
18cda936 Fix variant of unloadChunkRequest that was incorrectly never deprecated
00763e1b Deprecate some methods
35a83d54 SPIGOT-4572: Make default no permission message clearer
6163343d Fix some misplaced material enum entries
8736469c Fix typo in TechnicalPiston documentation

CraftBukkit Changes:
0c715b32 SPIGOT-4579: Shulker boxes not dropping in creative
50fbc3f1 SPIGOT-4576: Fix attributes in itemstack internal data being lost
8059a937 SPIGOT-4577: Fix loss of int/double custom tags when serialized to yaml
07e504c3 Clarify exception thrown when setting drop chance for player inventory
98b862ad Fix duplicate iron golem add
843cee65 Fix a bunch of duplicate EntityCombustEvent calls
43855624 SPIGOT-4571: EntityCombustEvent not firing for phantoms
2019-01-15 21:12:19 +00:00

28 lines
991 B
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brokkonaut <hannos17@gmx.de>
Date: Tue, 3 Jul 2018 16:07:16 +0200
Subject: [PATCH] Add World.getEntity(UUID) API
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
index c73b7065..e424ed4e 100644
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -0,0 +0,0 @@ public interface World extends PluginMessageRecipient, Metadatable {
*/
public Collection<Entity> getNearbyEntities(Location location, double x, double y, double z);
+ // Paper start - getEntity by UUID API
+ /**
+ * Gets an entity in this world by its UUID
+ *
+ * @param uuid the UUID of the entity
+ * @return the entity with the given UUID, or null if it isn't found
+ */
+ public Entity getEntity(UUID uuid);
+ // Paper end
+
/**
* Returns a list of entities within a bounding box centered around a
* Location.
--