gpt4 book ai didi

java - gradle 上构建错误 : cannot find symbol

转载 作者:行者123 更新时间:2023-12-01 19:35:46 26 4
gpt4 key购买 nike

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

最佳答案

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

关于java - gradle 上构建错误 : cannot find symbol,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59222457/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com