mirror of
https://github.com/Minestom/Minestom.git
synced 2024-06-26 06:24:54 +02:00
24 lines
474 B
Java
24 lines
474 B
Java
package net.minestom.server.potion;
|
|
|
|
import org.jetbrains.annotations.NotNull;
|
|
|
|
public class TimedPotion {
|
|
|
|
private final Potion potion;
|
|
private final long startingTime;
|
|
|
|
public TimedPotion(@NotNull Potion potion, long startingTime) {
|
|
this.potion = potion;
|
|
this.startingTime = startingTime;
|
|
}
|
|
|
|
@NotNull
|
|
public Potion getPotion() {
|
|
return potion;
|
|
}
|
|
|
|
public long getStartingTime() {
|
|
return startingTime;
|
|
}
|
|
}
|