diff --git a/paper-api/src/main/java/org/bukkit/World.java b/paper-api/src/main/java/org/bukkit/World.java index 9517091f60..10e9981c90 100644 --- a/paper-api/src/main/java/org/bukkit/World.java +++ b/paper-api/src/main/java/org/bukkit/World.java @@ -1835,6 +1835,16 @@ public interface World extends RegionAccessor, WorldInfo, PluginMessageRecipient */ public void setFullTime(long time); + // Paper start + + /** + * Check if it is currently daytime in this world + * + * @return True if it is daytime + */ + public boolean isDayTime(); + // Paper end + /** * Gets the full in-game time on this world since the world generation * diff --git a/paper-api/src/main/java/org/bukkit/entity/Mob.java b/paper-api/src/main/java/org/bukkit/entity/Mob.java index 63a14bec00..ef89a82669 100644 --- a/paper-api/src/main/java/org/bukkit/entity/Mob.java +++ b/paper-api/src/main/java/org/bukkit/entity/Mob.java @@ -20,6 +20,13 @@ public interface Mob extends LivingEntity, Lootable { */ @NotNull com.destroystokyo.paper.entity.Pathfinder getPathfinder(); + + /** + * Check if this mob is exposed to daylight + * + * @return True if mob is exposed to daylight + */ + boolean isInDaylight(); // Paper end /** * Instructs this Mob to set the specified LivingEntity as its target.