Add local difficulty api

This commit is contained in:
BillyGalbreath
2025-01-12 15:42:34 -08:00
committed by granny
parent dc60c29e5d
commit c544757d8c
2 changed files with 2 additions and 18 deletions

View File

@@ -0,0 +1,19 @@
--- a/src/main/java/org/bukkit/World.java
+++ b/src/main/java/org/bukkit/World.java
@@ -4246,6 +_,16 @@
@Nullable
public DragonBattle getEnderDragonBattle();
+ // Purpur start
+ /**
+ * Gets the local difficulty (based on inhabited time) at a location
+ *
+ * @param location Location to check
+ * @return The local difficulty
+ */
+ public float getLocalDifficultyAt(@NotNull Location location);
+ // Purpur end
+
/**
* Get all {@link FeatureFlag} enabled in this world.
*