在gradle上生成错误:找不到符号

时间:2019-12-07 02:19:57

标签: java gradle build minecraft build-error

RouletteBlock.java Gradle构建错误

/root/pirate-roulette/src/main/java/com/nemosw/spigot/pirateroulette/RouletteBlock.java:158: error: cannot find symbol
        CustomEntityPacket.register(stand.getId()).sendTo(p);
                                                  ^
  symbol:   method sendTo(Iterable<CAP#1>)
  location: interface Packet
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Player from capture of ? extends Player
/root/pirate-roulette/src/main/java/com/nemosw/spigot/pirateroulette/RouletteBlock.java:159: error: cannot find symbol
        CustomEntityPacket.scale(stand.getId(), 3.0F, 3.0F, 3.0F, 0).sendTo(p);
                                                                    ^
  symbol:   method sendTo(Iterable<CAP#1>)
  location: interface Packet
  where CAP#1 is a fresh type-variable:
    CAP#1 extends Player from capture of ? extends Player
2 errors

在构建该项目时,它会导致错误,我无法弄清楚这是哪种错误。谁能为我解决这个问题?

build.gradle

RouletteBlock.java

PirateRoulettePlugin.java

mox-math/Vector.java

CustomEntityPacket.java-这是原始来源,因此程序包名称不同于RouletteBlock.java

nemosw/tap

bukkit

1 个答案:

答案 0 :(得分:0)

Packet返回的CustomEntityPacket.register(...)没有sendTo(...)方法。请参见sourcecode of Packet来找到合适的调用方法(例如send(Player))。