public class EntityPlayerCop extends EntityPlayerMP
{
public EntityPlayerCop(EntityPlayer player, World world)
{
super(world, player.getGameProfile());
copyLocationAndAnglesFrom(player);
// fix inventory
//inventory.copyInventory(player.inventory);
// copy model and data
getDataManager().set(EntityPlayer.PLAYER_MODEL_FLAG,
player.getDataManager().get(EntityPlayer.PLAYER_MODEL_FLAG));
// fix rotation
rotationYawHead = player.rotationYawHead;
renderYawOffset = player.renderYawOffset;
// fix cape movement
chasingPosX = posX;
chasingPosY = posY;
chasingPosZ = posZ;
// spawn
//world.spawnEntity(this);
}
public void resetPlayerPosition(EntityPlayer player)
{
player.setPositionAndRotation(posX, posY, posZ,
rotationYaw, rotationPitch);
}*/
}