This commit is contained in:
坏黑
2018-05-07 14:43:57 +08:00
parent 7181c487f9
commit 6f34cbc2e0
152 changed files with 9256 additions and 9003 deletions

View File

@@ -1,27 +1,25 @@
package me.skymc.taboolib.player;
import java.util.LinkedList;
import org.bukkit.block.Block;
import org.bukkit.entity.LivingEntity;
import org.bukkit.util.BlockIterator;
import java.util.LinkedList;
@Deprecated
public class TargetUtils {
public static LinkedList<Block> getTarget(LivingEntity p, int max) {
BlockIterator itor = new BlockIterator(p);
LinkedList<Block> block = new LinkedList<>();
while(itor.hasNext())
{
max++;
block.add(itor.next());
if (max >= 100)
{
break;
}
}
return block;
}
public static LinkedList<Block> getTarget(LivingEntity p, int max) {
BlockIterator itor = new BlockIterator(p);
LinkedList<Block> block = new LinkedList<>();
while (itor.hasNext()) {
max++;
block.add(itor.next());
if (max >= 100) {
break;
}
}
return block;
}
}