Removed unnecessary deprecations

This commit is contained in:
Németh Noel 2021-07-03 14:41:57 +02:00
parent 3e0486cfd3
commit 3f1c433c94
2 changed files with 0 additions and 5 deletions

View File

@ -1530,9 +1530,7 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, 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));
}

View File

@ -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));
}