diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 0abadce61..8512a9221 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -1530,9 +1530,7 @@ public class Entity implements Viewable, Tickable, EventHandler, Da * @param delay the time before removing the entity, * 0 to cancel the removing * @param temporalUnit the unit of the delay - * @deprecated Replaced by {@link #scheduleRemove(Duration)} */ - @Deprecated public void scheduleRemove(long delay, @NotNull TemporalUnit temporalUnit) { scheduleRemove(Duration.of(delay, temporalUnit)); } diff --git a/src/main/java/net/minestom/server/entity/ItemEntity.java b/src/main/java/net/minestom/server/entity/ItemEntity.java index eba2ab87d..aae2eaebb 100644 --- a/src/main/java/net/minestom/server/entity/ItemEntity.java +++ b/src/main/java/net/minestom/server/entity/ItemEntity.java @@ -241,10 +241,7 @@ public class ItemEntity extends Entity { * * @param delay the pickup delay * @param temporalUnit the unit of the delay - * - * @deprecated Replaced by {@link #setPickupDelay(Duration)} */ - @Deprecated public void setPickupDelay(long delay, @NotNull TemporalUnit temporalUnit) { setPickupDelay(Duration.of(delay, temporalUnit)); }