mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: f6f9157b Don't toString block unless actually showing the message b3f0527a Add Spawn Entity SpawnReason API ec8d7387 MC-183249: Don't generate Carving Masks BitSet unless needed 2d401d2d Improve BlockPosition hashCode/equals 2572bd01 Fix world unload toLowercase - Fixes #3326 dda9680b Optimize brigadier child sorting performance a71a4ec2 Fix CraftServer.unloadWorld Leak
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From 386834e8745191fe5fc0436a6c50a5abeaf588b6 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 e5232946e..822e06647 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -3281,6 +3281,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
|
|
|