package me.totalfreedom.totalfreedommod.util; 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 java.util.HashSet; @SuppressWarnings("deprecation") public class DepreciationAggregator { public static Block getTargetBlock(LivingEntity entity, HashSet 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(); } }