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 0b8776355f724927ada826735d5e73f3fb6897d5..e040e4012832cd992811e1270f3459921f48476b 100644 --- a/src/main/java/org/bukkit/World.java +++ b/src/main/java/org/bukkit/World.java @@ -4018,6 +4018,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 + /** * Represents various map environment types that a world may be */