mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-18 00:47:42 +01:00
Upstream has released updates that appears to apply and compile correctly Paper Changes: fcbeac8a [CI-SKIP] Readme update (#3702) 824f8086 Bandaid italic legacy serialization #3757 (#3760) Tuinity Changes: 9f21359: Re-add optimise collision checking in player move packet handling 1152054: Revert player move packet optimisation ef0a6c4: Optimise collision checking in player move packets
28 lines
972 B
Diff
28 lines
972 B
Diff
From 0000000000000000000000000000000000000000 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] World#getPlacementBlockData
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
|
index 9955d741..95042597 100644
|
|
--- a/src/main/java/org/bukkit/World.java
|
|
+++ b/src/main/java/org/bukkit/World.java
|
|
@@ -3458,6 +3458,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
|
|
|
|
/**
|