java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by tenten8401
, 1 year ago
org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;
java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;
at com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick(GoldenAxeListener.java:56)
at org.spongepowered.common.event.listener.PrimaryListener_GoldenAxeListener_onPlayerLeftClick65.handle(Unknown Source)
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:349)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:332)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:377)
at org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:362)
at net.minecraft.server.MinecraftServer.handler$onServerTickEnd$0(MinecraftServer.java:565)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:658)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.