From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Sat, 9 Jul 2022 00:57:26 -0500 Subject: [PATCH] Add local difficulty api diff --git a/src/main/java/org/bukkit/World.java b/src/main/java/org/bukkit/World.java index f72f0f0f8eee95f95adc969d55ba7de82ee30e2a..1e794f6d2765d3e2c40b15a9699d181ffe12c2f5 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -4211,6 +4211,16 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient @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. *