Skip to content

Commit 5c849ff

Browse files
authored
Merge pull request #6 from Omena0/PJBClient
Pjb client
2 parents 74b90c0 + 88968a6 commit 5c849ff

388 files changed

Lines changed: 7052 additions & 33872 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/deploy-pages.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,18 @@ jobs:
2929
with:
3030
python-version: '3.12'
3131

32+
- name: Setup Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: '20'
36+
37+
- name: Install Node tools
38+
run: |
39+
npm install --no-audit --no-fund --no-save html-minifier-next critical
40+
3241
- name: Build docs
3342
run: |
34-
pip install markdown
43+
pip install markdown zstandard
3544
python docs/build.py
3645
3746
- name: Setup Pages

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ bin
88
# MC Server
99
server
1010

11+
# Client mod repo
12+
client_mod
13+
1114
# Cache
1215
__pycache__/

.markdownlint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"MD024": false,
3-
"MD013": {"line_length": 500},
3+
"MD013": {"line_length": 5000},
44
"MD001": false
55
}

.vscode/launch.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"type": "java",
6+
"name": "Run Fabric Client (Build + Attach)",
7+
"request": "attach",
8+
"hostName": "localhost",
9+
"port": "${input:debugPort}",
10+
"preLaunchTask": "Run client_mod (debug)"
11+
}
12+
],
13+
"inputs": [
14+
{
15+
"id": "quickPlayServer",
16+
"type": "promptString",
17+
"description": "Server to auto-join via Quick Play (host:port)",
18+
"default": "localhost:25565"
19+
},
20+
{
21+
"id": "debugPort",
22+
"type": "promptString",
23+
"description": "JDWP debug port to attach",
24+
"default": "40296"
25+
}
26+
]
27+
}

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
"https://www.schemastore.org/bukkit-plugin.json": "file:///home/omena0/Github/PyJavaBridge/src/main/resources/plugin.yml"
44
},
55
"java.compile.nullAnalysis.mode": "automatic",
6-
"python-envs.defaultEnvManager": "ms-python.python:system",
6+
"java.import.gradle.nestedProjects": true,
7+
"python-envs.defaultEnvManager": "ms-python.python:venv",
78
"java.configuration.updateBuildConfiguration": "automatic",
89
"python.defaultInterpreterPath": "/home/omena0/Github/PyJavaBridge/.venv/bin/python"
910
}

.vscode/tasks.json

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Build client_mod",
6+
"type": "shell",
7+
"command": "./gradlew :client_mod:build -x test",
8+
"problemMatcher": [],
9+
"group": {
10+
"kind": "build",
11+
"isDefault": true
12+
},
13+
"presentation": {
14+
"echo": true,
15+
"reveal": "always",
16+
"panel": "shared"
17+
}
18+
},
19+
{
20+
"label": "Run client_mod",
21+
"type": "shell",
22+
"command": "./gradlew :client_mod:runClient -PquickPlayMultiplayer=${input:quickPlayServer}",
23+
"dependsOn": "Build client_mod",
24+
"problemMatcher": [],
25+
"presentation": {
26+
"echo": true,
27+
"reveal": "always",
28+
"panel": "new"
29+
}
30+
},
31+
{
32+
"label": "Run client_mod (debug)",
33+
"type": "shell",
34+
"command": "./gradlew :client_mod:runClient -PquickPlayMultiplayer=${input:quickPlayServer} -PdebugPort=${input:debugPort}",
35+
"dependsOn": "Build client_mod",
36+
"isBackground": true,
37+
"problemMatcher": {
38+
"owner": "pjb-run",
39+
"pattern": [
40+
{
41+
"regexp": "^(.*)$",
42+
"message": 1
43+
}
44+
],
45+
"background": {
46+
"activeOnStart": false,
47+
"beginsPattern": "^> Task :client_mod:runClient",
48+
"endsPattern": "Listening for transport dt_socket|Listening on port|Started Minecraft server"
49+
}
50+
},
51+
"presentation": {
52+
"echo": true,
53+
"reveal": "always",
54+
"panel": "new"
55+
}
56+
}
57+
],
58+
"inputs": [
59+
{
60+
"id": "quickPlayServer",
61+
"type": "promptString",
62+
"description": "Server to auto-join via Quick Play (host:port)",
63+
"default": "localhost:25565"
64+
},
65+
{
66+
"id": "debugPort",
67+
"type": "promptString",
68+
"description": "JDWP debug port for runClient",
69+
"default": "40296"
70+
}
71+
]
72+
}

0 commit comments

Comments
 (0)