Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.6.0 #46

Merged
merged 67 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
cc77432
feat: Support for 1.18.~1
PeyaPeyaPeyang Aug 12, 2024
f59bef6
feat: Support for 1.18.1
PeyaPeyaPeyang Aug 14, 2024
a0320b7
feat: Preparing for 1.20.6
PeyaPeyaPeyang Aug 16, 2024
b2bb237
feat: Preparing for 1.8.1
PeyaPeyaPeyang Aug 17, 2024
d89b87d
chore: Update specialSource to 2.0.3
PeyaPeyaPeyang Aug 17, 2024
7081cdf
ci: New nms logic
PeyaPeyaPeyang Aug 19, 2024
7d4f943
ci: Bump NMSAccess to v2
PeyaPeyaPeyang Aug 19, 2024
2b3b013
ci: Caches for CI
PeyaPeyaPeyang Aug 19, 2024
b1e269d
ci: Bump docs build ci's java to 1.17
PeyaPeyaPeyang Aug 12, 2024
c691217
chore(deps-dev): [skip ci] bump org.junit.jupiter:junit-jupiter-engin…
dependabot[bot] Aug 19, 2024
fd6587e
chore(deps-dev): [skip ci] bump org.junit.jupiter:junit-jupiter-api (…
dependabot[bot] Aug 19, 2024
3ca8cb3
ci: New codeql analysis
PeyaPeyaPeyang Aug 19, 2024
7755aae
feat: Add mappings fro 1.18.1
PeyaPeyaPeyang Aug 21, 2024
65f20c5
refactor: De-generify of Mapped<?> and Creatable<?>
PeyaPeyaPeyang Aug 23, 2024
bc0e9a1
feat: Generics for Mapped
PeyaPeyaPeyang Aug 24, 2024
804acd6
style: Reformat/Rearrange/Optimise code
PeyaPeyaPeyang Aug 24, 2024
f923c91
fix: Broken reference of importing
PeyaPeyaPeyang Aug 24, 2024
a87d6e9
feat(bk): supports_since/until for types
PeyaPeyaPeyang Aug 25, 2024
da2c420
feat(bk): Version info for bookkeeper
PeyaPeyaPeyang Aug 26, 2024
2a27872
fix: Broken uuid reference
PeyaPeyaPeyang Aug 26, 2024
c57858d
feat: HeightEye for livingentity
PeyaPeyaPeyang Aug 26, 2024
79c0e5e
feat: Default properties of HumanEntity
PeyaPeyaPeyang Aug 27, 2024
b476e51
fix: bed location might be null below 1.16.5
PeyaPeyaPeyang Aug 27, 2024
69295d0
ci: Add dependencies for 1.20.6
PeyaPeyaPeyang Sep 4, 2024
c7a7b75
feat: sneaking/sprinting keys of PlayerStructure
PeyaPeyaPeyang Sep 4, 2024
0215a83
fix: Exceptions occur if the hasCooldown method is passed materials t…
PeyaPeyaPeyang Sep 5, 2024
a3b8256
feat: NMS preparation for 1.20.v4
PeyaPeyaPeyang Sep 8, 2024
f508c66
feat: Add NMS support for 1.20.r4
PeyaPeyaPeyang Sep 9, 2024
1705301
fix: FIX nms reference error
PeyaPeyaPeyang Sep 10, 2024
41b9e88
feat: 1.20.r3 support
PeyaPeyaPeyang Sep 12, 2024
70f0527
fix: YAML loading failing since 1.20.r3
PeyaPeyaPeyang Sep 13, 2024
26b73f2
fix: YAML loading bug
PeyaPeyaPeyang Sep 15, 2024
4d4ce52
revert: Remove 1.20.x implementations
PeyaPeyaPeyang Sep 15, 2024
eaa28fd
docs: add 1.17.x support
PeyaPeyaPeyang Sep 15, 2024
83b5cc8
docs: Improving japanese
PeyaPeyaPeyang Sep 17, 2024
f598848
docs: Correcting japanese
PeyaPeyaPeyang Sep 17, 2024
3a6b53a
docs: Fixing examples of scenarios
PeyaPeyaPeyang Sep 20, 2024
a22f990
fix: Degrade of calculating formula
PeyaPeyaPeyang Sep 20, 2024
060a47d
docs: Fixing template miss of "watch" to "expect"
PeyaPeyaPeyang Sep 22, 2024
4e2f948
chore(deps): bump org.projectlombok:lombok in /Scenamatica (#44) [ski…
dependabot[bot] Nov 22, 2024
ff5513d
chore(deps): bump org.apache.logging.log4j:log4j-core in /Scenamatica…
dependabot[bot] Nov 22, 2024
139537b
chore(deps-dev): bump org.junit.jupiter:junit-jupiter-api (#43) [skip…
dependabot[bot] Nov 22, 2024
26e4b41
chore(deps-dev): bump org.junit.jupiter:junit-jupiter-engine (#42) [s…
dependabot[bot] Nov 22, 2024
c96a8ac
chore(deps-dev): bump org.mockito:mockito-core in /Scenamatica (#41) …
dependabot[bot] Nov 22, 2024
55a4576
chore(deps): bump org.jetbrains:annotations in /Scenamatica (#40) [sk…
dependabot[bot] Nov 22, 2024
8955be0
fix: Fixing redundant message of scenario message duplication
PeyaPeyaPeyang Sep 22, 2024
67cf31c
refactor: Create IllegalActionInputException and though
PeyaPeyaPeyang Sep 26, 2024
49ae24f
feat: Simplify syntax error message for scenario loader
PeyaPeyaPeyang Sep 29, 2024
f972ca4
feat: Enhancing error message details of scenario compilation
PeyaPeyaPeyang Sep 29, 2024
1a880a8
fix: Comparing blocks
PeyaPeyaPeyang Oct 4, 2024
4b10bad
docs: remove redundant space
PeyaPeyaPeyang Oct 8, 2024
54957c3
feat(scenario-file): Detailed scenario syntax error message base
PeyaPeyaPeyang Oct 10, 2024
65dc1c4
feat(scenario-file): Apply structure mappers for BlockStructure
PeyaPeyaPeyang Oct 20, 2024
8dc15fa
feat(scenario-file): Apply structure mappers for structures
PeyaPeyaPeyang Oct 20, 2024
04b5f0f
feat(scenario-file): Nodes for ItemStack
PeyaPeyaPeyang Oct 26, 2024
02f141b
feat(scenario-file): Nodes for Entities/Blocks
PeyaPeyaPeyang Oct 27, 2024
97ffdfd
feat(scenario-file): Nodes for entities
PeyaPeyaPeyang Oct 30, 2024
b1e7561
feat(scenario-file): Applying throwable of nodes
PeyaPeyaPeyang Nov 8, 2024
842a78c
feat(scenario-file): Applying throwable of nodes for all
PeyaPeyaPeyang Nov 9, 2024
6cbe5a7
feat(scenario-file): New error message that contains file contents
PeyaPeyaPeyang Nov 11, 2024
b68404a
fix(scenario-file): Connection would be ip
PeyaPeyaPeyang Nov 11, 2024
c632f73
fix(scenario-file): World environment would be null
PeyaPeyaPeyang Nov 11, 2024
dbac0d7
feat(scenario-file): New yaml loading system
PeyaPeyaPeyang Nov 16, 2024
7e1e7bd
feat(scenario-file): Scalar of error
PeyaPeyaPeyang Nov 17, 2024
84078af
feat(action): Collecting unresolved references data
PeyaPeyaPeyang Nov 19, 2024
9c291dd
refactor: Simplify Bukkit reporter
PeyaPeyaPeyang Nov 19, 2024
f02e960
feat(scenario-engine): Better error messages for unresolved references
PeyaPeyaPeyang Nov 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
103 changes: 0 additions & 103 deletions .github/workflows/build-nms.yml

This file was deleted.

51 changes: 39 additions & 12 deletions .github/workflows/build-scenamatica.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,27 +13,54 @@ jobs:
- uses: actions/checkout@v4
- name: Change directory to scenamatica
run: cd Scenamatica
- name: Set up JDK 17
- name: Set up JDK 22
uses: actions/setup-java@v4
id: maven-cache
with:
java-version: 17
java-version: 22
distribution: zulu
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.2
- name: Restore NMS cache
uses: actions/cache@v4
##### NMS 以外のキャッシュを利かせる #####
- name: Try to restore cache
uses: actions/cache/restore@v4
id: restore-cache
with:
path: nms-build/.m2
key: nms-maven
restore-keys: nms-maven
- name: Deploy NMS cache
if: steps.maven-cache.outputs.cache-hit != 'true'
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
- name: Collect dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
mv -f nms-build/.m2/repository/repository $HOME/.m2/ -v
mvn dependency:go-offline -f Scenamatica/pom.xml
mvn dependency:go-offline -f Bookkeeper/pom.xml
# 失敗することが前提なので↓
continue-on-error: true
- name: Cache dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
id: cache-dependencies
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
##### おわり of NMS 以外のキャッシュを利かせる #####
- name: Deploy NMS
uses: TeamKun/NMSAccess@v2
with:
access-token: ${{ secrets.token }}
versions: |
1.18.1 # v1_18_R1
1.18.1 # v1_18_R1
1.17.1 # v1_17_R1
1.16.5 # v1_16_R3
1.16.3 # v1_16_R2
1.16.1 # v1_16_R1
1.15.2 # v1_15_R1
1.14.4 # v1_14_R1
1.13.2 # v1_13_R2
1.13 # v1_13_R1
- name: Build with Maven
run: |
cd Scenamatica
Expand Down
62 changes: 39 additions & 23 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
name: "CodeQL"

on:
push:
branches: [main, develop]
paths:
- "Scenamatica/**"
pull_request:
# The branches below must be a subset of the branches above
branches: [develop]
Expand All @@ -26,45 +22,65 @@ on:
workflow_dispatch:

jobs:
setup-nms:
name: Setup NMS
uses: "./.github/workflows/build-nms.yml"
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
build-and-analyze:
name: Build with Maven
runs-on: ubuntu-latest
needs: setup-nms
steps:
- uses: actions/checkout@v4
- name: Change directory to scenamatica
run: cd Scenamatica
- name: Set up JDK 8
- name: Set up JDK 22
uses: actions/setup-java@v4
id: maven-cache
with:
java-version: 8
java-version: 22
distribution: zulu
cache: maven
- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.8.2
- name: Restore NMS cache
uses: actions/cache@v4
with:
path: nms-build/.m2
key: nms-maven
restore-keys: nms-maven
- name: Deploy NMS cache
if: steps.maven-cache.outputs.cache-hit != 'true'
run: |
mv -f nms-build/.m2/repository $HOME/.m2/ -v
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: java
##### NMS 以外のキャッシュを利かせる #####
- name: Try to restore cache
uses: actions/cache/restore@v4
id: restore-cache
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
- name: Collect dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
run: |
mvn dependency:go-offline -f Scenamatica/pom.xml
mvn dependency:go-offline -f Bookkeeper/pom.xml
# 失敗することが前提なので↓
continue-on-error: true
- name: Cache dependencies without NMS
if: steps.restore-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
id: cache-dependencies
with:
key: maven-cache-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository
enableCrossOsArchive: true
##### おわり of NMS 以外のキャッシュを利かせる #####
- name: Deploy NMS
uses: TeamKun/NMSAccess@v2
with:
access-token: ${{ secrets.token }}
versions: |
1.17.1 # v1_17_R1
1.16.5 # v1_16_R3
1.16.3 # v1_16_R2
1.16.1 # v1_16_R1
1.15.2 # v1_15_R1
1.14.4 # v1_14_R1
1.13.2 # v1_13_R2
1.13 # v1_13_R1
- name: Build with Maven
run: |
cd Scenamatica
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ jobs:
uses: pnpm/action-setup@v3
with:
package_json_file: docs/package.json
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v4
id: maven-cache
with:
java-version: 11
java-version: 17
distribution: zulu
cache: maven
- name: Set up Maven
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/scenamatica-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ concurrency:
group: ${{ github.workflow }}-scenamatica-${{ github.ref }}
cancel-in-progress: true
jobs:
setup-nms:
name: Setup NMS
uses: "./.github/workflows/build-nms.yml"
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
build:
name: Build with Maven
needs: setup-nms
uses: "./.github/workflows/build-scenamatica.yml"
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_PAT }}
self-tests:
name: Self-test with Scenamatica
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
*
* @return サポートする Minecraft バージョンの終了バージョン
*/
@Nullable
MCVersion supportsUntil() default MCVersion.UNSET;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package org.kunlab.scenamatica.bookkeeper.annotations;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.kunlab.scenamatica.bookkeeper.enums.MCVersion;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
Expand Down Expand Up @@ -78,6 +80,22 @@
*/
double min() default Integer.MIN_VALUE;

/**
* サポートする Minecraft バージョンの開始バージョンを返します。
*
* @return サポートする Minecraft バージョンの開始バージョン
*/
@Nullable
MCVersion supportsSince() default MCVersion.UNSET;

/**
* サポートする Minecraft バージョンの終了バージョンを返します。
*
* @return サポートする Minecraft バージョンの終了バージョン
*/
@Nullable
MCVersion supportsUntil() default MCVersion.UNSET;

/**
* 型プロパティのアドモ二ションを取得します。
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ protected TypeReference doCompile(TypeDefinition definition)
definition.getClazz().name,
definition.getMappingOf() != null ? definition.getMappingOf().getClassName().replace('.', '/'): null,
compileProperties(definition.getProperties(), parentCompiled),
admonitions.toArray(new GenericAdmonition[0])
admonitions.toArray(new GenericAdmonition[0]),
definition.getSupportsSince(),
definition.getSupportsUntil()
)
);
}
Expand Down Expand Up @@ -159,7 +161,9 @@ private Map<String, CompiledType.Property> compileProperties(TypePropertyDefinit
property.getMin(),
property.getMax(),
property.getDefaultValue(),
property.getAdmonitions()
property.getAdmonitions(),
property.getSupportsSince(),
property.getSupportsUntil()
)
);
}
Expand Down Expand Up @@ -292,7 +296,9 @@ private TypeReference getEnumReference(Type type, @NotNull ClassNode classNode)
classNameSimple,
null,
category,
className
className,
null,
null
),
enumValues
);
Expand Down Expand Up @@ -371,7 +377,7 @@ public static class PrimitiveType extends CompiledType implements IPrimitiveType
{
private PrimitiveType(String primitiveName, Class<?> clazz)
{
super(primitiveName, primitiveName, null, null, clazz.getName());
super(primitiveName, primitiveName, null, null, clazz.getName(), null, null);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ private CompiledSpecifierType(String type, String className)
type.substring(0, 1).toUpperCase() + type.substring(1) + "Specifier",
null,
null,
className
className,
null,
null
);
}

Expand Down
Loading
Loading