Skip to content
This repository has been archived by the owner on May 27, 2023. It is now read-only.

Version 0.2.0 proposal #11

Closed
wants to merge 44 commits into from
Closed

Version 0.2.0 proposal #11

wants to merge 44 commits into from

Conversation

DamianKocher
Copy link
Contributor

This PR fixes many issues but probably creates many more. I believe these changes are necessary to reach a point where this library can be used in a production capacity.

Fixes
Fixes #4 - Scaffolding methods now cannot return null
Fixes #8 - Schematics now cannot be placed in positions which would put them outside of world bounds
Fixes #10 - MCEdit schematics now use correct block palette

Improvements

  • More documentation
  • Distribution via JitPack is supported
  • Use CompletableFutures wherever possible
  • Rewrite schematic loading to make adding new schematic formats easier
  • WIP wiki site
  • WIP WorldEdit like editor server
  • Many other small changes

emortal and others added 30 commits March 10, 2022 22:32
…w throw an IllegalArgumentException if the provided schematic is of unknown type
@LooFifteen
Copy link
Member

you madman

@DamianKocher
Copy link
Contributor Author

you madman

yeah i might've gotten a bit carried away lmao

Copy link
Member

@LooFifteen LooFifteen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting is a bit odd with the lack of spaces at the end of files, other than that and a few other comments, looking really good and quite interesting.

Was actually planning to migrate to Gradle, thank goodness someone did it for me.

.gitignore Outdated
Comment on lines 39 to 46
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
# *.iml
# *.ipr
Copy link
Member

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.

.gitignore Outdated
### Let's just ignore the whole .idea folder for now###
.idea/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmmmm

compileOnly("com.github.Minestom:Minestom:${minestomVersion}")
testImplementation("com.github.Minestom:Minestom:${minestomVersion}")

testImplementation("me.alexpanov:free-port-finder:1.1.1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably just use port 25565 for convenience sake.

/**
* A static utility class primarily used to parse schematics.
*/
@SuppressWarnings("unused")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warnings probably shouldn't be suppressed. Unused is a valid thing to supress but I prefer keeping warnings in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right. If I ever get around to adding proper unit tests suppressing unused warnings won't be necessary. I'll remove them.

/**
* Represents a rectangle 3 dimensional region of blocks withing an {@link Instance}.
*/
@SuppressWarnings("unused")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same suppressing thing here.

dependencies {
implementation(project(":scaffolding-core"))

implementation("me.alexpanov:free-port-finder:1.1.1")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also probably use 25565

@LooFifteen
Copy link
Member

Should the server have Moulberry's WorldEdit installed by default instead of recreating a selection tool? It should allow the end user to have more editing capability.

@DamianKocher
Copy link
Contributor Author

I thought about that. I'm a bit torn on the issue. One one hand, leveraging the 10+ years of development that WE has is a smart move. On the other, I think with enough work it would be possible to surpass the capabilities of what WE has to offer.

I personally would like to go down the second route, but if you want me to cut the editor in favor of using WE I understand.

@LooFifteen
Copy link
Member

If you have the time and dedication to do that, go ahead. I'm unable to spend that time unfortunately.

@DamianKocher DamianKocher marked this pull request as draft May 19, 2022 20:58
@joshuasing joshuasing changed the base branch from master to feat/v2 June 11, 2022 13:08
@joshuasing
Copy link
Member

joshuasing commented Jun 11, 2022

Hey @DamianKocher, thank you for contributing, I am able to work on this in my free time so I will be merge this into a development branch to continue.

@joshuasing joshuasing marked this pull request as ready for review June 11, 2022 13:10
@joshuasing joshuasing closed this Jun 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MCEdit schematics use the incorrect block pallet Cannot place schematic Null response without an error
3 participants