From 70944eccdf7241f5744d1e71025c7b2cb2851a2a Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sat, 20 Jul 2024 18:09:35 +0200 Subject: [PATCH] Add work in progress minecraft & bukkit subsystems --- .idea/workspace.xml | 36 +- build.gradle | 4 + gradle.properties | 9 + minecraft/build.gradle | 83 ++++ minecraft/bukkit/build.gradle | 135 ++++++ minecraft/bukkit/gradle | 1 + minecraft/bukkit/gradlew | 1 + minecraft/bukkit/gradlew.bat | 1 + .../minecraft/bukkit/BukkitSubsystem.java | 89 ++++ .../minecraft/bukkit/PluginEntrypoint.java | 132 ++++++ .../bukkit/engine/ForwardingLoggerImpl.java | 66 +++ .../bukkit/internal/PluginPhase.java | 55 +++ .../bukkit/src/main/java/module-info.java | 16 + minecraft/bukkit/src/main/javadoc/theme.css | 1 + .../bukkit/src/main/resources/plugin.yml | 9 + minecraft/bukkit/testextension/build.gradle | 74 +++ minecraft/bukkit/testextension/gradle | 1 + minecraft/bukkit/testextension/gradlew | 1 + minecraft/bukkit/testextension/gradlew.bat | 1 + .../testextension/BukkitEntrypoint.java | 36 ++ .../bukkit/testextension/Entrypoint.java | 79 ++++ .../src/main/java/module-info.java | 16 + .../src/main/resources/plugin.yml | 11 + minecraft/gradle | 1 + minecraft/gradlew | 1 + minecraft/gradlew.bat | 1 + .../minecraft/MinecraftSubsystem.java | 134 ++++++ .../MinecraftSubsystemConfiguration.java | 160 +++++++ .../minecraft/api/api/ImplementationApi.java | 57 +++ .../api/api/ImplementationFeatures.java | 71 +++ .../sosengine/minecraft/api/api/Server.java | 26 ++ .../minecraft/api/entity/Console.java | 99 ++++ .../minecraft/api/entity/Entity.java | 53 +++ .../minecraft/api/entity/Player.java | 91 ++++ .../api/misc/AdventureShortcodeConverter.java | 112 +++++ .../extension/ExtensionEntrypoint.java | 85 ++++ .../extension/ExtensionMetadata.java | 426 ++++++++++++++++++ .../extension/ExtensionRegistrar.java | 41 ++ .../implementation/ExtensionManager.java | 184 ++++++++ .../ImplementationBootstrapper.java | 104 +++++ .../ImplementationMainClass.java | 40 ++ minecraft/src/main/java/module-info.java | 25 + minecraft/src/main/javadoc/overview.html | 22 + minecraft/src/main/javadoc/theme.css | 1 + settings.gradle | 3 + 45 files changed, 2588 insertions(+), 6 deletions(-) create mode 100644 minecraft/build.gradle create mode 100644 minecraft/bukkit/build.gradle create mode 120000 minecraft/bukkit/gradle create mode 120000 minecraft/bukkit/gradlew create mode 120000 minecraft/bukkit/gradlew.bat create mode 100644 minecraft/bukkit/src/main/java/de/staropensource/sosengine/minecraft/bukkit/BukkitSubsystem.java create mode 100644 minecraft/bukkit/src/main/java/de/staropensource/sosengine/minecraft/bukkit/PluginEntrypoint.java create mode 100644 minecraft/bukkit/src/main/java/de/staropensource/sosengine/minecraft/bukkit/engine/ForwardingLoggerImpl.java create mode 100644 minecraft/bukkit/src/main/java/de/staropensource/sosengine/minecraft/bukkit/internal/PluginPhase.java create mode 100644 minecraft/bukkit/src/main/java/module-info.java create mode 120000 minecraft/bukkit/src/main/javadoc/theme.css create mode 100644 minecraft/bukkit/src/main/resources/plugin.yml create mode 100644 minecraft/bukkit/testextension/build.gradle create mode 120000 minecraft/bukkit/testextension/gradle create mode 120000 minecraft/bukkit/testextension/gradlew create mode 120000 minecraft/bukkit/testextension/gradlew.bat create mode 100644 minecraft/bukkit/testextension/src/main/java/de/staropensource/sosengine/minecraft/bukkit/testextension/BukkitEntrypoint.java create mode 100644 minecraft/bukkit/testextension/src/main/java/de/staropensource/sosengine/minecraft/bukkit/testextension/Entrypoint.java create mode 100644 minecraft/bukkit/testextension/src/main/java/module-info.java create mode 100644 minecraft/bukkit/testextension/src/main/resources/plugin.yml create mode 120000 minecraft/gradle create mode 120000 minecraft/gradlew create mode 120000 minecraft/gradlew.bat create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/MinecraftSubsystem.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/MinecraftSubsystemConfiguration.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/api/ImplementationApi.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/api/ImplementationFeatures.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/api/Server.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/entity/Console.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/entity/Entity.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/entity/Player.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/api/misc/AdventureShortcodeConverter.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/extension/ExtensionEntrypoint.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/extension/ExtensionMetadata.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/extension/ExtensionRegistrar.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/implementation/ExtensionManager.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/implementation/ImplementationBootstrapper.java create mode 100644 minecraft/src/main/java/de/staropensource/sosengine/minecraft/implementation/ImplementationMainClass.java create mode 100644 minecraft/src/main/java/module-info.java create mode 100644 minecraft/src/main/javadoc/overview.html create mode 120000 minecraft/src/main/javadoc/theme.css diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 2f4f870..4a22ad8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,7 +6,7 @@ @@ -116,13 +116,14 @@