mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 05:19:41 +00:00
Optimize Imports
This commit is contained in:
1 parent
ec78673fa2
commit
e46b78ff71
149 files changed
+931
-1029
No files matched your search
@@ -1,13 +1,13 @@
|
||||
package foxz.utils;
|
||||
|
||||
import java.util.List;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.server.MinecraftServer;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.world.WorldServer;
|
||||
import net.minecraftforge.common.DimensionManager;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class Utils {
|
||||
|
||||
@@ -16,11 +16,11 @@ public class Utils {
|
||||
List<T> list = player.worldObj.getEntitiesWithinAABB(cls, range);
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
static public EntityPlayer getOnlinePlayer(String playername){
|
||||
return MinecraftServer.getServer().getConfigurationManager().func_152612_a(playername);
|
||||
}
|
||||
|
||||
|
||||
static public World getWorld(String t){
|
||||
WorldServer[] ws=MinecraftServer.getServer().worldServers;
|
||||
for (WorldServer w:ws){
|
||||
@@ -32,13 +32,13 @@ public class Utils {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
// <editor-fold desc="--- Foxz fork (pls keep it)">
|
||||
// static public void savePlayerAltInv(EntityPlayer p,String n){
|
||||
// static public void savePlayerAltInv(EntityPlayer p,String n){
|
||||
// NBTTagList tag=p.inventory.writeToNBT(new NBTTagList());
|
||||
// p.getEntityData().setTag("AltInv_"+n, tag);
|
||||
// }
|
||||
//
|
||||
//
|
||||
// static public void loadPlayerAltInv(EntityPlayer p,String n){
|
||||
// p.inventory.readFromNBT((NBTTagList) p.getEntityData().getTag("AltInv_"+n));
|
||||
// }
|
||||
|
||||
Reference in new issue
Block a user