mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From cf82e3c599dd3c048b0f452ec5209df163028b94 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 8205b4767..887ac0645 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -3074,6 +3074,16 @@ public interface World extends PluginMessageRecipient, Metadatable {
|
|
* @param enabled True to enable
|
|
*/
|
|
void setFluidTickEventEnabled(boolean enabled);
|
|
+
|
|
+ /**
|
|
+ * 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.rc1
|
|
|