2013-02-28 11:53:42 +00:00
|
|
|
package net.minecraftforge.common;
|
|
|
|
|
2013-10-03 06:46:17 +00:00
|
|
|
import cpw.mods.fml.common.FMLCommonHandler;
|
|
|
|
import net.minecraft.entity.player.EntityPlayerMP;
|
|
|
|
import net.minecraft.item.ItemInWorldManager;
|
|
|
|
import net.minecraft.server.MinecraftServer;
|
2013-11-11 21:15:06 +00:00
|
|
|
import net.minecraft.stats.StatBase;
|
2013-06-30 12:50:11 +00:00
|
|
|
import net.minecraft.util.ChatMessageComponent;
|
2013-02-28 11:53:42 +00:00
|
|
|
import net.minecraft.util.ChunkCoordinates;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
|
|
|
//Preliminary, simple Fake Player class
|
2013-10-03 06:46:17 +00:00
|
|
|
public class FakePlayer extends EntityPlayerMP
|
2013-02-28 11:53:42 +00:00
|
|
|
{
|
|
|
|
public FakePlayer(World world, String name)
|
|
|
|
{
|
2013-10-03 06:46:17 +00:00
|
|
|
super(FMLCommonHandler.instance().getMinecraftServerInstance(), world, name, new ItemInWorldManager(world));
|
2013-02-28 11:53:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public void sendChatToPlayer(String s){}
|
|
|
|
public boolean canCommandSenderUseCommand(int i, String s){ return false; }
|
|
|
|
public ChunkCoordinates getPlayerCoordinates()
|
|
|
|
{
|
|
|
|
return new ChunkCoordinates(0,0,0);
|
|
|
|
}
|
2013-06-30 12:50:11 +00:00
|
|
|
|
|
|
|
@Override
|
2013-07-04 01:54:41 +00:00
|
|
|
public void sendChatToPlayer(ChatMessageComponent chatmessagecomponent){}
|
2013-11-11 21:15:06 +00:00
|
|
|
@Override
|
|
|
|
public void addStat(StatBase par1StatBase, int par2){}
|
2013-02-28 11:53:42 +00:00
|
|
|
}
|