mirror of
https://github.com/SimplexDevelopment/SimplexCore.git
synced 2025-07-01 22:56:43 +00:00
Removal of IDE files
This commit is contained in:
@ -0,0 +1,17 @@
|
||||
package io.github.paldiu.simplexcore.future;
|
||||
|
||||
import java.util.LinkedList;
|
||||
import java.util.concurrent.CompletionStage;
|
||||
|
||||
public class FutureFactory<T> {
|
||||
private final T object;
|
||||
private final LinkedList<CompletionStage<T>> tree = new LinkedList<>();
|
||||
|
||||
public FutureFactory(T object) {
|
||||
this.object = object;
|
||||
}
|
||||
|
||||
public T getObject() {
|
||||
return object;
|
||||
}
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
package io.github.paldiu.simplexcore.future;
|
||||
|
||||
import io.github.paldiu.simplexcore.utils.Constants;
|
||||
import io.github.paldiu.simplexcore.utils.Utilities;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.scheduler.BukkitTask;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.function.Consumer;
|
||||
|
||||
public abstract class ScheduledTask implements Consumer<BukkitTask> {
|
||||
protected Date lastRan = new Date();
|
||||
|
||||
protected ScheduledTask() {
|
||||
|
||||
}
|
||||
|
||||
public Date getLastRan() {
|
||||
return lastRan;
|
||||
}
|
||||
|
||||
public void setLastRan(Date lastRan) {
|
||||
this.lastRan = lastRan;
|
||||
}
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
name: SimplexCore
|
||||
version: ${project.version}
|
||||
main: pw.coomer.simplexcore.SimplexCore
|
||||
main: io.github.paldiu.simplexcore.SimplexCore
|
||||
api-version: 1.16
|
||||
prefix: Simplex
|
||||
authors: [ Paldiu ]
|
||||
|
Reference in New Issue
Block a user