This repository has been archived by the owner on May 27, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Version 0.2.0 proposal #11
Closed
Closed
Changes from 42 commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
2dc67e4
Create jitpack.yml
9270b74
style: run Intellij formatter
DamianKocher 52980f3
refactor: use modern Minestom features, fix typos & suppress unused w…
DamianKocher c80ba1e
BREAKING CHANGE: Scaffolding#fromStream() & Scaffolding#fromFile() no…
DamianKocher 1169773
Merge branch 'master' of https://github.com/DamianKocher/Scaffolding
DamianKocher b7dd775
fix(MCEdit Schematic): Legacy block IDs are now converted to state ID…
DamianKocher 0ca1f7a
tests: Server now finds an open port to listen on
DamianKocher 6061807
refactor!: Begin refactoring to minimize code duplication between MCE…
DamianKocher c1c6028
feat: make Schematic implement Block.Setter
DamianKocher 0ace170
refactor!: massively change schematic deserialization behavior
DamianKocher 78132c3
refactor: begin cleaning up readers
DamianKocher 6f12f3e
refactor: general code cleanup
DamianKocher 8ad953e
fix: remove references to blueprints
DamianKocher f7b5657
feat: add method to check if placing a schematic at a given position …
DamianKocher 525e334
refactor!: rename Region#size(XYZ) methods to width,length,height
DamianKocher 5985ddb
Merge branch 'master' of https://github.com/emortaldev/Scaffolding
DamianKocher a9d061b
documentation: remove misinformation
DamianKocher 3efc912
refactor: documentation and code quality improvements
DamianKocher c99b4a0
refactor!: prefix all region getter methods with get
DamianKocher 1d63396
feat: ScaffoldingUtils#loadChunks now returns the region used so that…
DamianKocher fdca25c
chore: move from maven to gradle
DamianKocher 4497846
gradle: java.sourceCompatibility to Java 17
DamianKocher 87c8bc8
chore: update minestom version
DamianKocher 6259daf
deps: add minestom as a dependency for tests
DamianKocher 53d36a2
docs: a lot of documentation
DamianKocher 0c19296
refactor!: use Point over Pos
DamianKocher a3f1ceb
chore: remove outdated information from README
DamianKocher 9074c11
feat: add new ways to read schematic
DamianKocher 3aa3188
feat(editor): add WIP editor
DamianKocher 608cd2d
chore: move README
DamianKocher 6b97e7a
init(docs): create vitepress documentation module
DamianKocher c826039
chore: add even more selfless self promotion
DamianKocher e821f84
tests: add junit
DamianKocher a22564e
docs: add coming soon notice to incomplete pages
DamianKocher cdbd496
docs(core): add documentation to new Scaffolding methods
DamianKocher 63fec96
style: misc changes
DamianKocher 170126f
Merge remote-tracking branch 'origin/master'
DamianKocher 29780f1
Revert "chore: add even more selfless self promotion"
DamianKocher 65517a7
fully utilizing gradle multi projects
DamianKocher 2891928
docs(core): add @NotNull annotations
DamianKocher 67dd76c
chore: add temporary usage guide to README as a placeholder until rea…
DamianKocher 2e0d0d7
docs: fix typo
DamianKocher 6ed0156
improve .gitignore, remove unnecessary annotations, and use port 2556…
DamianKocher c6e79ad
feat(editor): give player selection tool upon spawning
DamianKocher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# Scaffolding | ||
|
||
Scaffolding is a library for Minestom that allows you to load and place schematics. | ||
> This library is very early in development and has too many bugs to count. For your own safety, you should not use it in a production environment. | ||
|
||
> Also expect the API to change quite a bit in the future as this project works towards a 1.0.0 release. | ||
|
||
## Getting Started | ||
|
||
### Repository | ||
|
||
As with Minestom, Scaffolding uses JitPack to distribute releases. | ||
|
||
#### Gradle (Kotlin) | ||
Add JitPack as a repository to your ```build.gradle.kts``` file. | ||
```kotlin | ||
repositories { | ||
maven(url = "https://jitpack.io") | ||
} | ||
``` | ||
|
||
#### Gradle (Groovy) | ||
Add JitPack as a repository to your ```build.gradle``` file. | ||
```groovy | ||
repositories { | ||
maven { url 'https://jitpack.io' } | ||
} | ||
``` | ||
|
||
#### Maven | ||
Add JitPack as a repository to your ```pom.xml``` file. | ||
```xml | ||
<repositories> | ||
<repository> | ||
<id>jitpack</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
``` | ||
|
||
### Dependency | ||
|
||
Keep an eye out for new releases on [Jitpack](https://jitpack.io/#CrystalGamesMc/scaffolding). | ||
|
||
#### Gradle (Kotlin) | ||
Add Scaffolding as a dependency in your ```build.gradle.kts``` file. | ||
```kts | ||
dependencies { | ||
implementation("com.github.CrystalGamesMc:scaffolding:Tag") | ||
} | ||
``` | ||
|
||
#### Gradle (Groovy) | ||
Add Scaffolding as a dependency in your ```build.gradle``` file. | ||
```groovy | ||
dependencies { | ||
implementation 'com.github.CrystalGamesMc:scaffolding:Tag' | ||
} | ||
``` | ||
|
||
#### Maven | ||
Add Scaffolding as a dependency in your ```pom.xml``` file. | ||
```xml | ||
<dependencies> | ||
<dependency> | ||
<groupId>com.github.CrystalGamesMc</groupId> | ||
<artifactId>scaffolding</artifactId> | ||
<version>Tag</version> | ||
</dependency> | ||
</dependencies> | ||
``` | ||
|
||
## Usage | ||
Read | ||
```java | ||
File file = new File("schematics/your_schematic.schematic"); | ||
Schematic schematic = Scaffolding.fromFileSync(file); | ||
``` | ||
|
||
Build | ||
```java | ||
Schematic schematic = ...; | ||
schematic.build(instance, new Pos(0, 64, 0)).join(); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
# Created by https://www.toptal.com/developers/gitignore/api/maven,intellij+all,java | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=maven,intellij+all,java | ||
# Created by https://www.toptal.com/developers/gitignore/api/intellij+all,gradle,java | ||
# Edit at https://www.toptal.com/developers/gitignore?templates=intellij+all,gradle,java | ||
|
||
### Intellij+all ### | ||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider | ||
|
@@ -36,14 +36,14 @@ | |
# When using Gradle or Maven with auto-import, you should exclude module files, | ||
# since they will be recreated, and may cause churn. Uncomment if using | ||
# auto-import. | ||
.idea/artifacts | ||
.idea/compiler.xml | ||
.idea/jarRepositories.xml | ||
.idea/modules.xml | ||
.idea/*.iml | ||
.idea/modules | ||
*.iml | ||
*.ipr | ||
# .idea/artifacts | ||
# .idea/compiler.xml | ||
# .idea/jarRepositories.xml | ||
# .idea/modules.xml | ||
# .idea/*.iml | ||
# .idea/modules | ||
# *.iml | ||
# *.ipr | ||
|
||
# CMake | ||
cmake-build-*/ | ||
|
@@ -66,6 +66,9 @@ atlassian-ide-plugin.xml | |
# Cursive Clojure plugin | ||
.idea/replstate.xml | ||
|
||
# SonarLint plugin | ||
.idea/sonarlint/ | ||
|
||
# Crashlytics plugin (for Android Studio and IntelliJ) | ||
com_crashlytics_export_strings.xml | ||
crashlytics.properties | ||
|
@@ -79,20 +82,13 @@ fabric.properties | |
.idea/caches/build_file_checksums.ser | ||
|
||
### Intellij+all Patch ### | ||
# Ignores the whole .idea folder and all .iml files | ||
# See https://github.com/joeblau/gitignore.io/issues/186 and https://github.com/joeblau/gitignore.io/issues/360 | ||
|
||
.idea/ | ||
|
||
# Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-249601023 | ||
# Ignore everything but code style settings and run configurations | ||
# that are supposed to be shared within teams. | ||
|
||
*.iml | ||
modules.xml | ||
.idea/misc.xml | ||
*.ipr | ||
.idea/* | ||
|
||
# Sonarlint plugin | ||
.idea/sonarlint | ||
!.idea/codeStyles | ||
!.idea/runConfigurations | ||
|
||
### Java ### | ||
# Compiled class file | ||
|
@@ -118,32 +114,39 @@ modules.xml | |
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
replay_pid* | ||
|
||
### Gradle ### | ||
.gradle | ||
**/build/ | ||
!src/**/build/ | ||
|
||
# Ignore Gradle GUI config | ||
gradle-app.setting | ||
|
||
### Maven ### | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
# https://github.com/takari/maven-wrapper#usage-without-binary-jar | ||
.mvn/wrapper/maven-wrapper.jar | ||
|
||
### Maven Patch ### | ||
# Eclipse m2e generated files | ||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | ||
!gradle-wrapper.jar | ||
|
||
# Avoid ignore Gradle wrappper properties | ||
!gradle-wrapper.properties | ||
|
||
# Cache of project | ||
.gradletasknamecache | ||
|
||
# Eclipse Gradle plugin generated files | ||
# Eclipse Core | ||
.project | ||
# JDT-specific (Eclipse Java Development Tools) | ||
.classpath | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/intellij+all,gradle,java | ||
|
||
### Minestom ### | ||
extensions/ | ||
|
||
### Scaffolding ### | ||
*.schematic | ||
*.schem | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/maven,intellij+all,java | ||
### Let's just ignore the whole .idea folder for now### | ||
.idea/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmmmm |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
allprojects { | ||
repositories { | ||
mavenCentral() | ||
maven { url = uri("https://jitpack.io") } | ||
} | ||
|
||
group = "net.crystalgames" | ||
version = "0.2.0" | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This stuff should be uncommented.