0
public void run() {
if(spleggEnabled == 3){
if(player.isBlocking()){
player.sendMessage(ChatColor.GREEN + "Projected Splegg!");
WitherSkull head = (WitherSkull) ((ProjectileSource) player).launchProjectile(WitherSkull.class);
BlockIterator iterator = new BlockIterator(event.getEntity().getWorld(), event.getEntity().getLocation().toVector(), event.getEntity().getVelocity().normalize(), 0.0D, 4);
}
if(player.isDead()){
spleggEnabled = 0;
}
的錯誤是每個event.getEntity()
,且誤差event cannot be resolved
。Bukkit錯誤:事件不能得到解決
任何想法?
此代碼是什麼?它有什麼方法? – bcsb1001
@ bcsb1001編輯後顯示完整的代碼 –
那麼'run()'方法似乎不在'Listener'中,那麼你期望'event'是什麼?它是一些領域?它甚至在什麼階層? – bcsb1001