Questions tagged [spongeapi]

Related to the Minecraft API SpongeAPI , and related SpongePowered projects: SpongeForge, Mixins, Configurate + More.

Official site: https://www.spongepowered.org/

Docs: http://docs.spongepowered.org

GitHub: https://github.com/SpongePowered/SpongeAPI/

8 questions
3
votes
1 answer

How do you exclude META-INF from a gradle project dependency?

I've got two sibling projects ProjectA and ProjectB that are both under Parent. Parent is basically only a folder, and has common build.gradle settings for both child projects. ProjectB depends on code in ProjectA at compile time, but ProjectA is…
Nahydrin
  • 13,197
  • 12
  • 59
  • 101
2
votes
0 answers

jackson-databind throws NoClassDefFoundError: com/fasterxml/jackson/databind/ObjectMapper even though its in shaded jar

I'm attempting to run a sponge plugin with an external dependency (JDA) and when i build a shaded jar with the dependency it still says that jackson-databind isnt found even though when i open the jar itself i can see the class it cant find. I've…
Fzzy
  • 31
  • 1
1
vote
1 answer

Access instance of outer class from mixin to inner class

I'm targeting a non-static nested class, e.g. package whatever; class Outer { public int x; class Inner { public void foo(); } } And I would like to write a SpongePowered Mixin for the inner class that refers to a field of the…
The Zach Man
  • 738
  • 5
  • 15
1
vote
2 answers

Can I use Guava's Services with an API provided ExecutorService?

https://github.com/SpongePowered/SpongeAPI/blob/b1aa5e04aae06a86d50b646daad06bab697d1707/src/main/java/org/spongepowered/api/scheduler/SpongeExecutorService.java SpongeAPI provides a ScheduledExecutorService , And Guava provides a well defined, and…
Ryan Leach
  • 4,262
  • 5
  • 34
  • 71
0
votes
1 answer

Failed to get reserved channel on sponge minecraft server

I'm looking for using MC|Brand channel on a sponge minecraft server. When i'm trying to use : Sponge.getChannelRegistrar().getOrCreateRaw(plugin, channel).addListener((data, connection, side) -> { if(side == Type.CLIENT) { // do…
Elikill58
  • 4,050
  • 24
  • 23
  • 45
0
votes
1 answer

scala NoSuchMethodError when java is calling scala

Using Scala version 2.12.4, when deploying a project using a fat jar, which contains the scala standard library, for loops still do not work, giving the following error: java.lang.NoSuchMethodError:…
mysterymyster
  • 43
  • 1
  • 8
0
votes
2 answers

Gradle subproject jar and add to Eclipse referenced libraries

I have a repo at http://www.github.com/kourbou/HyperQuest. I have a git submodule to a project called SpongeAPI. I would like to add the compiled jar of the subproject to the Eclipse project automatically but I have failed at doing so. I have added…
divx
  • 87
  • 9
-1
votes
1 answer

Overlapping Scopes in Guice?

Guice has the concept of a Scope, commonly used for a web server request. Are Scopes viable for use in a long-lived object, whose lifecycle may be asynchronous compared to the running code? E.g. Sponge & Bukkit both provide events that fire when a…
Ryan Leach
  • 4,262
  • 5
  • 34
  • 71