Implement base for RTP
This commit is contained in:
1 parent
139c51e9b8
commit
06a8aa0f65
10 files changed
+351
-2
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.alttd.essentia;
|
||||
|
||||
import com.alttd.essentia.api.model.randomteleport.LocationValidator;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
public interface EssentiaAPI {
|
||||
@@ -19,4 +20,6 @@ public interface EssentiaAPI {
|
||||
Provider.instance = instance;
|
||||
}
|
||||
}
|
||||
|
||||
public void addLocationValidator(LocationValidator locationValidator);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.alttd.essentia.api.model.randomteleport;
|
||||
|
||||
import org.bukkit.Location;
|
||||
|
||||
public interface LocationValidator {
|
||||
|
||||
boolean validate(Location location);
|
||||
}
|
||||
Reference in new issue
Block a user