mirror of
https://github.com/BX-Team/DivineMC.git
synced 2026-01-06 15:41:52 +00:00
BoneMeal API
This commit is contained in:
30
patches/api/0003-Paper-PR-BoneMeal-API.patch
Normal file
30
patches/api/0003-Paper-PR-BoneMeal-API.patch
Normal file
@@ -0,0 +1,30 @@
|
||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Owen1212055 <23108066+Owen1212055@users.noreply.github.com>
|
||||
Date: Sun, 17 Oct 2021 14:53:28 -0400
|
||||
Subject: [PATCH] Paper PR - BoneMeal API
|
||||
|
||||
|
||||
diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java
|
||||
index 9e71e519cda72a1e2a01474f238b97015ec5115e..b9088129e1a648ad7e17b11c4bc8cfb46673e738 100644
|
||||
--- a/src/main/java/org/bukkit/World.java
|
||||
+++ b/src/main/java/org/bukkit/World.java
|
||||
@@ -4044,4 +4044,19 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient
|
||||
}
|
||||
}
|
||||
}
|
||||
+ // Paper start
|
||||
+ /**
|
||||
+ * Applies bonemeal at a specific location
|
||||
+ * <p>
|
||||
+ * Modifications done in the predicate are respected
|
||||
+ * and will not be applied if false is returned.
|
||||
+ *
|
||||
+ * @param location Location to apply
|
||||
+ * @param face Blockface to apply as
|
||||
+ * @param showParticles If particles should be shown on success
|
||||
+ * @param predicate blockstate predicate
|
||||
+ * @return true if the bonemeal was applied, false if not
|
||||
+ */
|
||||
+ boolean applyBoneMeal(@NotNull Location location, @NotNull org.bukkit.block.BlockFace face, boolean showParticles, @Nullable Predicate<org.bukkit.block.BlockState> predicate);
|
||||
+ // Paper end
|
||||
}
|
||||
Reference in New Issue
Block a user