1
0
mirror of https://github.com/PaperMC/Paper.git synced 2025-07-26 01:32:02 -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-ItemStack-Recipe-API-helper-methods.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-WhitelistToggleEvent.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-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
Annotation-Test-changes.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
BlockDestroyEvent.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-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
Paper-Utils.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
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-source-block-to-BlockPhysicsEvent.patch
Shane Freeder a7ba5db3de Updated Upstream (Bukkit/CraftBukkit/Spigot)
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

Please note that this build includes changes to meet upstreams
requirements for nullability annotations. While we aim for a level of
accuracy, these might not be 100% correct, if there are any issues,
please speak to us on discord, or open an issue on the tracker to
discuss.

Bukkit Changes:
9a6a1de3 Remove nullability annotations from enum constructors
3f0591ea SPIGOT-2540: Add nullability annotations to entire Bukkit API

CraftBukkit Changes:
8d8475fc SPIGOT-4666: Force parameter in HumanEntity#sleep
8b1588e2 Fix ExplosionPrimeEvent#setFire not working with EnderCrystals
39a287b7 Don't ignore newlines in PlayerListHeader/Footer

Spigot Changes:
cf694d87 Add nullability annotations
2019-03-20 00:28:15 +00:00

25 lines
1.1 KiB
Diff

From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Sotr <i@omc.hk>
Date: Thu, 23 Aug 2018 16:14:25 +0800
Subject: [PATCH] Add source block to BlockPhysicsEvent
diff --git a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
index 75d4e70f5..a28731dc2 100644
--- a/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
+++ b/src/main/java/org/bukkit/event/block/BlockPhysicsEvent.java
@@ -0,0 +0,0 @@ public class BlockPhysicsEvent extends BlockEvent implements Cancellable {
private final Block sourceBlock;
private boolean cancel = false;
+ // Paper start - Legacy constructor, use #BlockPhysicsEvent(Block, BlockData, Block)
+ @Deprecated
+ public BlockPhysicsEvent(final Block block, final BlockData changed, final int sourceX, final int sourceY, final int sourceZ) {
+ this(block, changed, block.getWorld().getBlockAt(sourceX, sourceY, sourceZ));
+ }
+ // Paper end
+
public BlockPhysicsEvent(@NotNull final Block block, @NotNull final BlockData changed) {
this(block, changed, block);
}
--