2015-10-19 17:43:46 +00:00
|
|
|
package me.totalfreedom.totalfreedommod.util;
|
2014-07-20 01:02:00 +00:00
|
|
|
|
2018-07-31 07:01:29 +00:00
|
|
|
import java.util.HashSet;
|
2014-07-20 01:02:00 +00:00
|
|
|
import org.bukkit.Material;
|
|
|
|
import org.bukkit.OfflinePlayer;
|
|
|
|
import org.bukkit.Server;
|
|
|
|
import org.bukkit.block.Block;
|
|
|
|
import org.bukkit.entity.EntityType;
|
|
|
|
import org.bukkit.entity.LivingEntity;
|
2018-07-30 07:23:01 +00:00
|
|
|
|
2014-07-20 01:02:00 +00:00
|
|
|
@SuppressWarnings("deprecation")
|
2015-10-19 17:43:46 +00:00
|
|
|
public class DepreciationAggregator
|
2014-07-20 01:02:00 +00:00
|
|
|
{
|
2017-10-13 18:38:05 +00:00
|
|
|
public static Block getTargetBlock(LivingEntity entity, HashSet<Material> transparent, int maxDistance)
|
2014-07-20 01:02:00 +00:00
|
|
|
{
|
|
|
|
return entity.getTargetBlock(transparent, maxDistance);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static OfflinePlayer getOfflinePlayer(Server server, String name)
|
|
|
|
{
|
|
|
|
return server.getOfflinePlayer(name);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static String getName_EntityType(EntityType et)
|
|
|
|
{
|
|
|
|
return et.getName();
|
|
|
|
}
|
|
|
|
}
|