版本更新至:3.76

调整:开发框架改为 Gradle
新增:Language2 工具新增 [book] 类型
This commit is contained in:
坏黑
2018-03-10 21:13:05 +08:00
parent 6439e4b780
commit ad1a21196f
238 changed files with 1686 additions and 1132 deletions

View File

@@ -0,0 +1,27 @@
package me.skymc.taboolib.player;
import java.util.LinkedList;
import org.bukkit.block.Block;
import org.bukkit.entity.LivingEntity;
import org.bukkit.util.BlockIterator;
@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;
}
}