mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: df0d7b0d Update upstream CB 6ea3c2cf [CI-SKIP] Rebuild patches d7bed4cb Heavily optimise random block ticking (#2914) b66d9ff8 Update upstream CB ba71c5d6 Stop stripping private use block Unicode from signs 28d9dcfc Entity Jump API (#1587) 9976a768 Fix PlayerNaturallySpawnCreaturesEvent boolean inversion 054e20da Clean up imports on ThrownEggHatchEvent a8984ccb Add ThrownEggHatchEvent (#1982) 9f24d495 Allow nerfed blazes, endermen to take water damage (#2847)
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From b0a84079d3680d3de82ea32fefb46d479ba874e2 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <blake.galbreath@gmail.com>
|
|
Date: Sat, 19 Oct 2019 00:34:36 -0500
|
|
Subject: [PATCH] Add getPlacementBlockData to World
|
|
|
|
---
|
|
src/main/java/org/bukkit/World.java | 10 ++++++++++
|
|
1 file changed, 10 insertions(+)
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
index 80d63e25..3a0be100 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -3125,6 +3125,16 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
*/
|
|
@NotNull
|
|
net.pl3x.purpur.MoonPhase getMoonPhase();
|
|
+
|
|
+ /**
|
|
+ * Get the hypothetical BlockData that would apply if one tries to set the given BlockData
|
|
+ *
|
|
+ * @param blockData BlockData to try
|
|
+ * @param location Location to check
|
|
+ * @return Valid BlockData for location
|
|
+ */
|
|
+ @NotNull
|
|
+ BlockData getPlacementBlockData(@NotNull BlockData blockData, @NotNull Location location);
|
|
// Purpur end
|
|
|
|
/**
|
|
--
|
|
2.24.0
|
|
|