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
在构建该项目时,它会导致错误,我无法弄清楚这是哪种错误。谁能为我解决这个问题?
CustomEntityPacket.java-这是原始来源,因此程序包名称不同于RouletteBlock.java
答案 0 :(得分:0)
由Packet
返回的CustomEntityPacket.register(...)
没有sendTo(...)
方法。请参见sourcecode of Packet来找到合适的调用方法(例如send(Player)
)。