mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 17:07:43 +01:00
Remove Tuinity patches (you will be missed)
This commit is contained in:
33
patches/api/0025-Add-getPlacementBlockData-to-World.patch
Normal file
33
patches/api/0025-Add-getPlacementBlockData-to-World.patch
Normal file
@@ -0,0 +1,33 @@
|
||||
From 61ba17cba901baddbda5f01637ba70794bfec56e 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 af66b8255..04ced7551 100644
|
||||
--- a/src/main/java/org/bukkit/World.java
|
||||
+++ b/src/main/java/org/bukkit/World.java
|
||||
@@ -3224,6 +3224,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
|
||||
|
||||
Reference in New Issue
Block a user