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

GitHub | tenten8401 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Anti-Break not working 1.10

    GitHub | 7 months ago | tenten8401
    java.lang.NoSuchMethodError: org.spongepowered.api.entity.living.player.Player.getItemInHand()Ljava/util/Optional;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

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

      at com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick()
    2. com.arckenver.nations
      GoldenAxeListener.onPlayerLeftClick
      1. com.arckenver.nations.listener.GoldenAxeListener.onPlayerLeftClick(GoldenAxeListener.java:56)[GoldenAxeListener.class:0.10]
      1 frame
    3. org.spongepowered.common
      RegisteredListener.handle
      1. org.spongepowered.common.event.listener.PrimaryListener_GoldenAxeListener_onPlayerLeftClick65.handle(Unknown Source)[?:?]
      2. org.spongepowered.common.event.RegisteredListener.handle(RegisteredListener.java:95)[RegisteredListener.class:1.10.2-2044-5.0.0-BETA-1661]
      2 frames
    4. org.spongepowered.mod
      SpongeModEventManager.post
      1. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:349)[SpongeModEventManager.class:1.10.2-2044-5.0.0-BETA-1661]
      2. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:332)[SpongeModEventManager.class:1.10.2-2044-5.0.0-BETA-1661]
      3. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:377)[SpongeModEventManager.class:1.10.2-2044-5.0.0-BETA-1661]
      4. org.spongepowered.mod.event.SpongeModEventManager.post(SpongeModEventManager.java:362)[SpongeModEventManager.class:1.10.2-2044-5.0.0-BETA-1661]
      4 frames
    5. MC Server
      MinecraftServer.run
      1. net.minecraft.server.MinecraftServer.handler$onServerTickEnd$0(MinecraftServer.java:565)[MinecraftServer.class:?]
      2. net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:658)[MinecraftServer.class:?]
      3. net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)[MinecraftServer.class:?]
      3 frames