From cb92c02e36d91c728bc1ac3a43ac3a2da65b7f72 Mon Sep 17 00:00:00 2001 From: MrBunnyDc Date: Wed, 25 Sep 2024 12:48:47 -0400 Subject: [PATCH] Update .github things --- .github/ISSUE_TEMPLATE/bug_report.yml | 61 ++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 9 --- .github/ISSUE_TEMPLATE/feature_request.yml | 27 ++++++++ .github/ISSUE_TEMPLATE/issue_report.md | 21 ------ .../ISSUE_TEMPLATE/mod_incompatibility.yml | 64 +++++++++++++++++++ .github/no-reponse.yml | 2 + .github/workflows/build_pr.yml | 7 +- .github/workflows/gradle.yml | 20 ++++++ .../api/book/RegistrableBookInfo.java | 25 -------- 9 files changed, 178 insertions(+), 58 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml delete mode 100644 .github/ISSUE_TEMPLATE/issue_report.md create mode 100644 .github/ISSUE_TEMPLATE/mod_incompatibility.yml create mode 100644 .github/no-reponse.yml create mode 100644 .github/workflows/gradle.yml delete mode 100644 XPlat/src/main/java/de/wonejo/wuidebook/api/book/RegistrableBookInfo.java diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..3179f39 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,61 @@ +name: Bug Report +description: Create a report to help us improve +title: "[Bug]: " +labels: + - "bug" + - "unconfirmed" +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + - type: dropdown + id: minecraft-version + attributes: + label: Minecraft Version + options: + - 1.20.2 + - 1.20.4 + - 1.20.5 + - 1.20.6 + validations: + required: true + - type: dropdown + id: mod-loader + attributes: + label: Mod Loader + options: + - NeoForge + - Forge + - Fabric + validations: + required: true + - type: input + id: mod-version + attributes: + label: WuidebookAPI Version + validations: + required: true + - type: input + id: loader-version + attributes: + label: ModLoader Version + validations: + required: true + - type: textarea + id: description + attributes: + label: What happened ? + description: Please describe what happened or what you expected instead + validations: + required: true + - type: textarea + attributes: + label: Reproduce Steps + description: Please describe how to reproduce your issue + - type: textarea + id: logs + attributes: + label: Relevant log output + description: Please copy and paste any relevant log output. If your game crashes, this must be a crash-report + render: shell diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index e5e87be..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -name: Feature Request -about: Want to request a feature ? -title: '' -labels: enhancement, -assigness: '' - ---- - diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..2dfc7a8 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,27 @@ +name: Feature Request +description: Suggest an idea for thi smod +title: "[Feature]: " +labels: + - "discussion" + - "enhancement" + - "feature" +body: + - type: markdown + attributes: + value: | + Please describe your suggestion ass specific as possible. This increases the chance this will be considered. + + - type: textarea + id: what + attributes: + label: What ? + description: What would you like to have changed or added to WuidebookAPI + placeholder: Tell us what you want to see! + validations: + required: true + + - type: textarea + id: help + attributes: + label: Contributions + description: Can you provide additional resources ? \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/issue_report.md b/.github/ISSUE_TEMPLATE/issue_report.md deleted file mode 100644 index 1c882ce..0000000 --- a/.github/ISSUE_TEMPLATE/issue_report.md +++ /dev/null @@ -1,21 +0,0 @@ ---- -name: Issue Report -about: '' -title: '' -labels: triage -assigness: '' - ---- - -**Minecraft Version:** (Minecraft Version) - -**Wuidebook Version:** (Wuidebook Version) - -**Logs:** {Link(s) to Github gist with full latest.log and/or crash report} - -**Steps to Reproduce:** - 1.- Do this - 2.- Then do that - 3.- ... - -**Description of issue:** \ No newline at end of file diff --git a/.github/ISSUE_TEMPLATE/mod_incompatibility.yml b/.github/ISSUE_TEMPLATE/mod_incompatibility.yml new file mode 100644 index 0000000..6a68b2e --- /dev/null +++ b/.github/ISSUE_TEMPLATE/mod_incompatibility.yml @@ -0,0 +1,64 @@ +name: Mod Incompatibility +description: Use this if there is a bug/problem with another mod +title: "[ModCompat]: " +labels: + - "bug" + - "modcompat" + - "unconfirmed" +body: + - type: markdown + attributes: + value: | + Thanks for taking the time to fill out this bug report! + Please make sure to add all required information. + + - type: dropdown + id: minecraft-version + attributes: + label: Minecraft Version + options: + - 1.20.2 + - 1.20.4 + - 1.20.5 + - 1.20.6 + validations: + required: true + - type: input + id: incompatibility-mod + attributes: + label: Incompatibility Mod + description: Mod ID and version. + validations: + required: true + - type: dropdown + id: mod-loader + attributes: + label: Mod Loader + options: + - NeoForge + - Forge + - Fabric + validations: + required: true + - type: input + id: mod-version + attributes: + label: WuidebookAPI Version + validations: + required: true + - type: input + id: loader-version + attributes: + label: ModLoader Version + validations: + required: true + - type: textarea + attributes: + label: Reproduce Steps + description: Please describe how to reproduce your issue + - type: textarea + id: logs + attributes: + label: Relevant log output + description: Please copy and paste any relevant log output. If your game crashes, this must be a crash-report + render: shell diff --git a/.github/no-reponse.yml b/.github/no-reponse.yml new file mode 100644 index 0000000..8a5c505 --- /dev/null +++ b/.github/no-reponse.yml @@ -0,0 +1,2 @@ +daysUntilClose: 21 +responseRequiredLabel: NeedsInfo \ No newline at end of file diff --git a/.github/workflows/build_pr.yml b/.github/workflows/build_pr.yml index d3ed579..24da63d 100644 --- a/.github/workflows/build_pr.yml +++ b/.github/workflows/build_pr.yml @@ -19,10 +19,11 @@ jobs: fetch-depth: 1000 fetch-tags: true - - name: Setup JDK 21 - uses: neoforged/actions/setup-java@main + - name: Setup JDK + uses: actions/setup-java@main with: - java-version: 21 + java-version: '21' + distribution: 'microsoft' - name: Setup Gradle uses: gradle/actions/setup-gradle@v4 with: diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..e5a41a7 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,20 @@ +name: Gradle Build +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Java JDK + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'microsoft' + cache: 'gradle' + + - name: Setup Gradle + run: ./gradlew + + - name: Build + run: ./gradlew build \ No newline at end of file diff --git a/XPlat/src/main/java/de/wonejo/wuidebook/api/book/RegistrableBookInfo.java b/XPlat/src/main/java/de/wonejo/wuidebook/api/book/RegistrableBookInfo.java deleted file mode 100644 index afcf102..0000000 --- a/XPlat/src/main/java/de/wonejo/wuidebook/api/book/RegistrableBookInfo.java +++ /dev/null @@ -1,25 +0,0 @@ -package de.wonejo.wuidebook.api.book; - -import net.minecraft.network.chat.Component; -import net.minecraft.resources.ResourceLocation; - -import java.awt.*; - -public interface RegistrableBookInfo { - - ResourceLocation bookId (); - - ResourceLocation modelLocation (); - ResourceLocation mainBookGUITexture (); - ResourceLocation pageBookGUITexture (); - - Component title (); - Component header (); - Component itemName (); - Component author (); - - Color bookColor (); - - boolean shouldSpawnWithBook (); - -}