In my IDE, world.setBlockType and location.setBlockType exist, but when I try to run it, I get an error saying that the method does not exist. My sponge server version is 1.10.2-5.0.0-BETA-124, and it says “6.0.0 snapshot” in the IDE (Using gradle with + as the version). I figured using the latest API and latest bleeding server release should work…
Umm OK 6.x doesn’t exist
I took a quick look at the repo and apparently a build was made in April called 6.0.0-SNAPSHOT, probably by mistake
https://repo.spongepowered.org/maven/org/spongepowered/spongeapi/6.0.0-SNAPSHOT/maven-metadata.xml
You need to be depending on 5.0.0-SNAPSHOT instead.
As a general rule, the major versions should match for the API and the server implementation.
1 Like
Ah. I thought they weren’t related or something weird like that 