.
This commit is contained in:
parent
670eba418c
commit
13ced30434
122 changed files with 223 additions and 12 deletions
0
core/BUILD
Normal file
0
core/BUILD
Normal file
|
|
@ -4,15 +4,15 @@ load("@rules_java//java:java_binary.bzl", "java_binary")
|
|||
|
||||
java_library(
|
||||
name = "api",
|
||||
srcs = glob(["api/main/**/*.java"]),
|
||||
srcs = glob(["api/main/java/**/*.java"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//core-lib:core",
|
||||
"//core/common",
|
||||
artifact("io.papermc.paper:paper-api"),
|
||||
artifact("de.kentoj.scrow:kencommandapi-bukkit"),
|
||||
],
|
||||
exports = [
|
||||
"//core-lib:core",
|
||||
"//core/common",
|
||||
artifact("de.kentoj.scrow:kencommandapi-bukkit"),
|
||||
artifact("org.mongodb:bson"),
|
||||
],
|
||||
|
|
@ -20,10 +20,10 @@ java_library(
|
|||
|
||||
java_binary(
|
||||
name = "_plugin",
|
||||
srcs = glob(["plugin/main/**/*.java"]),
|
||||
srcs = glob(["plugin/main/java/**/*.java"]),
|
||||
create_executable = False,
|
||||
resources = glob(["plugin/main/resources/**"]),
|
||||
resource_strip_prefix = "core-bukkit/plugin/main/resources",
|
||||
resource_strip_prefix = "core/bukkit/plugin/main/resources",
|
||||
deps = [
|
||||
":api",
|
||||
artifact("net.luckperms:api"),
|
||||
|
|
@ -140,6 +140,11 @@ public class ScrowAPI {
|
|||
return instanceManager;
|
||||
}
|
||||
|
||||
/**
|
||||
* Regions are not a reliable enough to detect fast movements.
|
||||
* The way regions work is that every few ticks, all regions are checked for players.
|
||||
* @see org.bukkit.event.player.PlayerMoveEvent
|
||||
*/
|
||||
public static RegionManager regionManager() {
|
||||
return regionManager;
|
||||
}
|
||||
|
|
@ -5,6 +5,11 @@ import org.jetbrains.annotations.Nullable;
|
|||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Regions are not a reliable enough to detect fast movements.
|
||||
* The way regions work is that every few ticks, all regions are checked for players.
|
||||
* @see org.bukkit.event.player.PlayerMoveEvent
|
||||
*/
|
||||
public interface RegionManager {
|
||||
List<Region> getRegions(ChunkPos chunkPos);
|
||||
|
||||
|
|
@ -15,8 +15,8 @@ shared_deps = [
|
|||
]
|
||||
|
||||
java_library(
|
||||
name = "core",
|
||||
srcs = glob(["src/main/**/*.java"]),
|
||||
name = "common",
|
||||
srcs = glob(["src/main/java/**/*.java"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = shared_deps + [
|
||||
artifact("org.jdbi:jdbi3-postgres"),
|
||||
|
|
@ -4,15 +4,15 @@ load("@rules_java//java:java_binary.bzl", "java_binary")
|
|||
|
||||
java_library(
|
||||
name = "api",
|
||||
srcs = glob(["api/main/**/*.java"]),
|
||||
srcs = glob(["api/main/java/**/*.java"]),
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
"//core-lib:core",
|
||||
"//core/common",
|
||||
artifact("com.velocitypowered:velocity-api"),
|
||||
artifact("de.kentoj.scrow:kencommandapi-velocity"),
|
||||
],
|
||||
exports = [
|
||||
"//core-lib:core",
|
||||
"//core/common",
|
||||
artifact("de.kentoj.scrow:kencommandapi-velocity"),
|
||||
artifact("org.mongodb:bson"),
|
||||
],
|
||||
|
|
@ -20,7 +20,7 @@ java_library(
|
|||
|
||||
java_binary(
|
||||
name = "plugin",
|
||||
srcs = glob(["plugin/main/**/*.java"]),
|
||||
srcs = glob(["plugin/main/java/**/*.java"]),
|
||||
create_executable = False,
|
||||
deps = [
|
||||
":api",
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue