TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/util/DepreciationAggregator.java

32 lines
827 B
Java
Raw Normal View History

package me.totalfreedom.totalfreedommod.util;
import java.util.HashSet;
2017-10-13 18:38:05 +00:00
import java.util.UUID;
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;
import org.bukkit.material.MaterialData;
@SuppressWarnings("deprecation")
public class DepreciationAggregator
{
2017-10-13 18:38:05 +00:00
public static Block getTargetBlock(LivingEntity entity, HashSet<Material> transparent, int maxDistance)
{
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();
}
}