mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-20 07:02:32 +01:00
Removed unnecessary deprecations
This commit is contained in:
parent
3e0486cfd3
commit
3f1c433c94
@ -1530,9 +1530,7 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
|||||||
* @param delay the time before removing the entity,
|
* @param delay the time before removing the entity,
|
||||||
* 0 to cancel the removing
|
* 0 to cancel the removing
|
||||||
* @param temporalUnit the unit of the delay
|
* @param temporalUnit the unit of the delay
|
||||||
* @deprecated Replaced by {@link #scheduleRemove(Duration)}
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public void scheduleRemove(long delay, @NotNull TemporalUnit temporalUnit) {
|
public void scheduleRemove(long delay, @NotNull TemporalUnit temporalUnit) {
|
||||||
scheduleRemove(Duration.of(delay, temporalUnit));
|
scheduleRemove(Duration.of(delay, temporalUnit));
|
||||||
}
|
}
|
||||||
|
@ -241,10 +241,7 @@ public class ItemEntity extends Entity {
|
|||||||
*
|
*
|
||||||
* @param delay the pickup delay
|
* @param delay the pickup delay
|
||||||
* @param temporalUnit the unit of the delay
|
* @param temporalUnit the unit of the delay
|
||||||
*
|
|
||||||
* @deprecated Replaced by {@link #setPickupDelay(Duration)}
|
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
|
||||||
public void setPickupDelay(long delay, @NotNull TemporalUnit temporalUnit) {
|
public void setPickupDelay(long delay, @NotNull TemporalUnit temporalUnit) {
|
||||||
setPickupDelay(Duration.of(delay, temporalUnit));
|
setPickupDelay(Duration.of(delay, temporalUnit));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user